Skip to content
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

[Bug?]: console prints wrong GraphQL endpoint when apiGraphQLUrl is set in dev enviornment #10470

Open
1 task done
sumitsingh6 opened this issue Apr 17, 2024 · 4 comments
Open
1 task done
Labels
bug/needs-info More information is needed for reproduction topic/cli

Comments

@sumitsingh6
Copy link

What's not working?

when I run yarn rw dev when apiGraphQLUrl is set, the console prints that GraphQL endpoint is at http://localhost:8911/graphql which is a bug. It should point to external api instead.

How do we reproduce the bug?

No response

What's your environment? (If it applies)

No response

Are you interested in working on this?

  • I'm interested in working on this
@sumitsingh6 sumitsingh6 added the bug/needs-info More information is needed for reproduction label Apr 17, 2024
@ahaywood
Copy link
Contributor

@sumitsingh6 Thanks for reporting this. I'll do a little more digging...

@dthyresson
Copy link
Contributor

Hi @sumitsingh6 and thanks for reporting this issue.

Could you let us know:

  • what you used as apiGraphQLUrl
  • how you set it
  • what you expected to see when running yarn rw dev

Are you pointed to an external/remote url? Did you change the port?

@sumitsingh6
Copy link
Author

Hey @dthyresson ,

  • what you used as apiGraphQLUrl
    It has url to our graphql function. Its on different server.

  • how you set it
    In redwood.toml. You can read more about it here: https://redwoodjs.com/docs/app-configuration-redwood-toml

  • what you expected to see when running yarn rw dev
    The graphql on console should not print its on localhost (GraphQL endpoint at http://localhost:8911/graphql) since its pointed to external url that has been provided in the redwood.toml

Let me know if you have any more questions.

@Tobbe
Copy link
Member

Tobbe commented Apr 23, 2024

@sumitsingh6 So, just to confirm, everything in your app is working as expected, it's just the output in the console that's wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/needs-info More information is needed for reproduction topic/cli
Projects
None yet
Development

No branches or pull requests

4 participants