-
Notifications
You must be signed in to change notification settings - Fork 2k
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
apollo server azure functions example does not work #1135
Comments
@andyce1010 Apologies for the long overdue response. Did you end up resolving the issue? We're working towards AS2, so I'm curious your status and how we'll have to update for #1088 Joining the Apollo Slack https://www.apollographql.com/slack should get you a faster answer in the future |
I'm going to close this, since it hasn't had any updates and the example doesn't seem to be broken |
@evans clicking on https://www.apollographql.com/docs/apollo-server/servers/azure-functions.html#GraphQL gives me Page Not found |
@evans Apologies for the late reply. I never did get it working, and I've moved on to something else now unfortunately. |
@simonaco Thanks for pointing that out! https://www.apollographql.com/docs/apollo-server/v1/servers/azure-functions.html#GraphQL is where you'll find the version 1 documentation. That's odd, I see a package at https://www.npmjs.com/package/apollo-server-azure-functions at version 1.4.0. |
thanks @evans! on the npm package page if you try to navigate to the repository it will take you to this link https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-azure-functions which returns a 404. |
It looks like it was removed on this commit 40f9a49 |
thanks @eric-kimbrel |
I have followed these steps to try and get an azure function working:
https://www.apollographql.com/docs/apollo-server/servers/azure-functions.html#GraphQL
I have Run the function with the following as the post body:
{
rands {
id
rand
}
}
But the function throws a 500 error with the following:
2018-06-04T14:19:49.373 [Error] Exception while executing function: Functions.HttpTriggerJS1. mscorlib: SyntaxError: Unexpected token r in JSON at position 9
at Object.parse (native)
at graphqlHandler (D:\home\site\wwwroot\node_modules\apollo-server-azure-functions\dist\azureFunctionsApollo.js:20:39)
at run (D:\home\site\wwwroot\HttpTriggerJS1\index.js:31:36)
at D:\Program Files (x86)\SiteExtensions\Functions\1.0.11702\bin\azurefunctions\functions.js:106:24.
Have I missed a step, or is something broken in the example?
The text was updated successfully, but these errors were encountered: