我正在尝试在 AWS amplify 的 appsync 上运行一个简单的订阅。
订阅永远不会触发,大约 30 秒后,我在 appsync 控制台中等待子时收到此错误消息:
Error: {
"errors": [
{
"message": "Connection failed: Connection handshake error"
}
]
}
at Object.error (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:135:859689)
at d (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:203:1070669)
at m (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:203:1071013)
at e.value (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:203:1072095)
at n.<anonymous> (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:135:679765)
at r (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:135:675841)
at Object.throw (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:135:675176)
at s (https://d3owqdqy53mge.cloudfront.net/4e0034b0d516077971e58313cecbbabc76608841/main.js:135:674969)
如果我从浏览器重新创建调用,我会收到此错误:
WebSocket connection to 'wss://r23irwx4tndnjdfh7tlethffca.appsync-realtime-api.us-east-2.amazonaws.com/graphql?header=eyJBdXRob3JpemF0aW9uIjoiZXlKcmFXUWlPaUpTYWx3dlVEVkxOV2N5ZUd0blVXRXhWa3g2YmxVd1YwTmxZbnBsVFdsek4zZHpjelZ0Ym5SYVZrMVpUVDBpTENKaGJHY2lPaUpTVXpJMU5pSjkuZXlKemRXSWlPaUl3WldVNFlUZzVNUzB6TnpFeUxUUXhNekV0T1RsalpTMDFNelZrTTJVeE5UQmpaR0VpTENKbGRtVnVkRjlwWkNJNklqTXpZV1E0T1RneUxXUTBaalV0TkRCa09TMWlaRFl3TFdFNFpEWXlOelprTVRFellTSXNJblJ2YTJWdVgzVnpaU0k2SW1GalkyVnpjeUlzSW5OamIzQmxJam9pWVhkekxtTnZaMjVwZEc4dWMybG5ibWx1TG5WelpYSXVZV1...VSDNCYnJURTM5YmVWNEEzdW1JdGdPN0RjOVFCVkI2U09uX1ZJdVFvUElIOUZGNk10QzdtWTJLby0wQ19NTF9tSVAxdEFTVkNzSW5Zbjd4MWZzalFoUFpaS1J6MTFKbHJPdE5rOWNzOXVrd29yMU1iRGlBNklIOEJiaXIzSjNRNDlSckhXODZLM3RhQmNGSlphQVpnTEhKS05QajlBWWZhVHRNTnZnVmV4UUJhZzQ2cW5VZ3l1amF0SUMwamZ1Mk9LUUh1d2NNaGt6WjJjYlB6aWNwcG5kVk5aVVdnY1hzUlBadndFTzlENnZmZ3UyZTM0eHZXRW9mZld1RGh4LVc5Ui1HSEktbG1YTU4ydk9xd1RURTRxejdNM2Q3WGJvN3VyWUpsSHlGUUIxQSIsImhvc3QiOiJyMjNpcnd4NHRuZG5qZGZoN3RsZXRoZmZjYS5hcHBzeW5jLWFwaS51cy1lYXN0LTIuYW1hem9uYXdzLmNvbSJ9&payload=e30=' failed: Error during WebSocket handshake: net::ERR_SSL_PROTOCOL_ERROR