question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Code server not work for POST (Apollo GraphQL)

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome - Safari
  • Local OS: MacOs IpadOS
  • Remote OS: Ubuntu
  • Remote Architecture: amd64
  • code-server --version: 4.7.1

Steps to Reproduce

  1. open code-server
  2. run Apollo GraphQL local with integrated terminal ( port 4001 and path /local/graphql)
  3. go to url domain/proxy/4001/local/graphql (GET work)
  4. call url domain/proxy/4001/local/graphql with POST not work

Expected

call url domain/proxy/4001/local/graphql with POST work

Actual

Just get work

Logs

No response

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Drilmocommented, Oct 29, 2022

@jsjoeio i have found my mistake ! I have juste an old version of Serverless-offline dependency

1reaction
Drilmocommented, Oct 20, 2022

@jsjoeio sorry for my mistake, for the bug on “npm i” I have push fix (just remove dependance) I don’t use Apollo Router because I use Apollo Federation and this sample is a subgraph. it work on my local but not on local of code-server

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error handling - Apollo GraphQL Docs
If a request uses an invalid HTTP method ( GET with a mutation, or any HTTP method other than GET or POST ),...
Read more >
Full Stack Error Handling with GraphQL and Apollo
If networkError is present in your response, it means your entire query was rejected, and therefore no data was returned. For example, the ......
Read more >
Handling operation errors - Apollo GraphQL Docs
These are errors encountered while attempting to communicate with your GraphQL server, usually resulting in a 4xx or 5xx response status code (and...
Read more >
Error Policy in Apollo Client React seems doesn't work - Help
1 I have a problem when test Apollo. When I try to query with apollo and graphql, i want response return error and...
Read more >
Configuring CORS - Apollo GraphQL Docs
Specifically, the startStandaloneServer function's CORS behavior is not secure in this context. Instead, we recommend swapping to another Apollo Server ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found