-
Notifications
You must be signed in to change notification settings - Fork 35
Debugging appsync-emulator-serverless #103
Comments
If you could provide the query you are trying to run, and the relevant serverless.yml, then it would be easier to help. Also, running the emulator with Furthermore, it may be helpful to wrap the problem in a |
I should mention I have forked and made some changes to fit my use case. Got rid of DynamoDBEmulator and subscriptions and added an AWSTimestamp Scalar type. serverless.yml
I do have the GraphQL execute request wrapped in a try catch but no exception ever gets caught. One thing is the request that gets made as part of context has some additional fields in the object when not run as normal from the command line. Not sure if that matters? The request in the context object has the following fields when called with the debugger.
I can confirm that my web client is connecting to the GraphQL server. The only error I get is in my web client after about 2 minutes... POST http://localhost:40000/graphql net::ERR_EMPTY_RESPONSE So for some reason my request is not making it to the resolver when called from the debugger... My VSCode launch.json
The command line after debugger called
|
schema.graphql
getChannel.js
|
Wasn't sure if you anyone would be able to help me but worth a shot. I'm trying to run this the appsync-emulator in VSCode by debugging. I can confirm that my application works correctly when running from the command line and serverless offline start but when I run the appsync-server via the node --inspect-brk command with serverless offline start, the query just hangs when it gets to this bit of code in the executeGQL function of serverCore.js
Any idea why that might be? I'm not all that familiar with Node.JS so sorry if my question isn't all that clear.
The text was updated successfully, but these errors were encountered: