Reputation: 113
I have just updated from Amplify-cli 4.0.0 to 4.7.0 and now I am getting these errors when attempting to listen for my subscriptions.
{provider: AWSAppSyncRealTimeProvider, error: {…}}
provider: AWSAppSyncRealTimeProvider {_config: {…}, socketStatus: 0, keepAliveTimeout: 300000, subscriptionObserverMap: Map(0), promiseArray: Array(0), …}
error:
errors: Array(1)
0:
message: "Connection failed: Buffer is not defined"
__proto__: Object
length: 1
__proto__: Array(0)
__proto__: Object
__proto__: Object
I am using Ionic 4, and just before the update everything was working just fine.
Upvotes: 0
Views: 795
Reputation: 36
Please refer to the below link: Looks like you need to polyfill buffer.
https://github.com/agoncal/swagger-ui-angular6/issues/2
Upvotes: 2