Closed Jordan-Eckowitz closed 2 years ago
React
GraphQL API
api
I want to upgrade to v4.3.30 to get access to the new connection state feature: https://github.com/aws-amplify/amplify-js/pull/10063
v4.3.30
After upgrading I am not able to establish a WebSocket connection for the API. It fails and I get the following warning message:
"AppSync Realtime subscription init error: Error: No User Pool in the configuration."
{ "provider": { "_config": {}, "socketStatus": 0, "keepAliveTimeout": 300000, "subscriptionObserverMap": {}, "promiseArray": [], "connectionStateMonitor": { "_linkedConnectionState": { "networkState": "connected", "connectionState": "disconnected", "intendedConnectionState": "disconnected", "keepAliveState": "healthy" }, "_linkedConnectionStateObservable": {}, "_linkedConnectionStateObserver": { "_subscription": { "_observer": {}, "_state": "ready" } } } }, "error": { "errors": [ { "message": "AppSync Realtime subscription init error: Error: No User Pool in the configuration." } ] } }
WebSocket connection works as usual
// Put your code below this line.
No response
@Jordan-Eckowitz have you clear your node_modules and reinstall again?
node_modules
@elorzafe that did the trick, thanks!
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
GraphQL API
Amplify Categories
api
Environment information
Describe the bug
I want to upgrade to
v4.3.30
to get access to the new connection state feature: https://github.com/aws-amplify/amplify-js/pull/10063After upgrading I am not able to establish a WebSocket connection for the API. It fails and I get the following warning message:
Expected behavior
WebSocket connection works as usual
Reproduction steps
v4.3.30
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response