-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amplify Pull Notification: MAC verified OK But 🛑 Failed to enable the APNS channel. #13517
Comments
Looks like the code fails right here -
|
Hey @jinglongwu, could you try running the pull with |
as you see i am not able to get it work on my Windows env as the initial pull failed. However i got project identifier from my MacOS - |
@jinglongwu thank you for the information. Wanted to check into some information, is the profile configured locally in the same region as pinpoint resource?
Additionally, could you verify if the pinpoint resource exists on the AWS console. |
Hi @ykethan, this is an existing project that we have been developing in MacOS. In MacOS, we put the Now, i am setting up my Windows to develop. What i did is to copy the same
and i ran I think if the profile and/or credentials was wrong, or the |
@jinglongwu thank you for the information. On revisiting the debug output noticed the message |
@ykethan I am aware of the openssl vs libressl issue in #12969 and i have switched to Libressl in order to get above output. $ openssl version
WARNING: can't open config file: c:/libressl/ssl/openssl.cnf
LibreSSL 2.5.5 I installed Libressl via By doing so, it doesn't create such Also I just realized that the LibreSSL version that i use is 2.5.5, which is the last version the library supports windows.
Are you sure my issue is openssl related? it was an warning and it says Note that when i was using openssl, i also got similar output as in #12969. Because I have experienced this issue in MacOS, that's why i knew to use LibreSSL instead.
|
hmmm interestingly, i ran the same amplify pull today and got a different exception today - √ Successfully pulled backend environment dev from the cloud.
√ Select the authentication method for the APNS channel · Certificate
√ The certificate file path (.p12): · Certificates.p12
√ The certificate password (if any): ·
WARNING: can't open config file: c:/libressl/ssl/openssl.cnf
MAC verified OK
× There was an error initializing your environment.
🛑 Failed to enable the APNS channel.
Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/
NotificationsChannelAPNSFault: Failed to enable the APNS channel.
at Object.enable (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\channel-apns.js:121:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async pushChanges (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\multi-env-manager.js:302:22)
at async Object.initEnv (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\multi-env-manager.js:45:40)
at async initEnv (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\index.js:47:5)
Missing required key 'ApplicationId' in params
MissingRequiredParameter: Missing required key 'ApplicationId' in params
at ParamValidator.fail (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\param_validator.js:50:37)
at ParamValidator.validateStructure (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\param_validator.js:62:14)
at ParamValidator.validateMember (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\param_validator.js:89:21)
at ParamValidator.validate (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\param_validator.js:34:10)
at Request.VALIDATE_PARAMETERS (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\event_listeners.js:166:42)
at Request.callListeners (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
at callNextListener (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\sequential_executor.js:96:12)
at C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\event_listeners.js:120:11
at finish (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\config.js:396:7)
at C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\config.js:414:9
at Credentials.get (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\credentials.js:127:7)
at getAsyncCredentials (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\config.js:408:24)
at Config.getCredentials (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\config.js:428:9)
at Request.VALIDATE_CREDENTIALS (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\event_listeners.js:111:28)
at Request.callListeners (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\sequential_executor.js:102:18)
at Request.emit (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\request.js:686:14)
at Request.transition (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\state_machine.js:14:12)
at Request.runTo (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\request.js:406:15)
at C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\request.js:795:12
at new Promise (<anonymous>)
at Request.promise (C:\snapshot\amplify-cli\build\node_modules\aws-sdk\lib\request.js:781:12)
at Object.enable (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\channel-apns.js:115:79)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async pushChanges (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\multi-env-manager.js:302:22)
at async Object.initEnv (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\multi-env-manager.js:45:40)
at async initEnv (C:\snapshot\amplify-cli\build\node_modules\@aws-amplify\amplify-category-notifications\lib\index.js:47:5)
Session Identifier: b0fcd9b8-18e7-4976-a619-4b1718574d38 |
Okay I believe I got this issue resolved. The problem is about the line ending difference between Unix vs Windows. (aka LF vs CRLF). Context Solution
After so, I re-ran How I discover this So I re-cloned, and the issues is gone. Working Theory |
@jinglongwu thank you for the information, marking this as bug. |
@dcolin do could you provide us the |
@ykethan i found the problem with |
Closing the issue as this is cause by third party dependancy. |
|
Amplify CLI Version
12.10.0
Question
Hi, exactly like the closed one Issue #11916, I tried to pull an existing env, which we have been developing for ios in mac, in windows now for developing Android, I got the same error with Notification:
√ The certificate password (if any): · MAC verified OK × There was an error initializing your environment. 🛑 Failed to enable the APNS channel.
Here is the
error.json
, it is not so descriptive unfortunately.Please help.
The text was updated successfully, but these errors were encountered: