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

Error message not displayed properly (encoding issue) #11260

Closed
JonasDoe opened this issue Sep 29, 2023 · 5 comments · Fixed by #11261
Closed

Error message not displayed properly (encoding issue) #11260

JonasDoe opened this issue Sep 29, 2023 · 5 comments · Fixed by #11261

Comments

@JonasDoe
Copy link
Contributor

Issue Description

In the console log, I see an error:
An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#%7B%22version%22%3A%223.8.4%22%2C%22message%22%3A10%2C%22args%22%3A%5B%22chatChannel%22%2C%22%7B%5Cn%20%20%5C%22__typename%5C%22%3A%20%5C%22Group%5C%22%2C%5Cn%20%20%5C%22intro%5C%22%3A%20%5C%22%5C%22%2C%5Cn%20%20%5C%22info%5C%22%3A%20%5C%22%5C%22%2C%5Cn%20%20%5C%22locatedByAddress%5C%22%3A%20null%2C%5Cn%20%20%5C%22categorizedBy%5C%22%3A%20null%2C%5Cn%20%20%5C%22administeredBy%5C%22%3A%20%7B%5Cn%20%20%20%20%5C%22__typename%5C%22%3A%20%5C%22MembershipConnection%5C%22%2C%5Cn%20%20%20%20%5C%22count%5C%22%3A%200%2C%5Cn%20%20%20%20%5C%22edges%5C%22%3A%20%5B%5D%5Cn%20%20%7D%2C%5Cn%20%20%5C%22id%5C%22%3A%20%5C%22U%3A8f443196-5370-4ac2-a997-d8211042e972%3AGroup%5C%22%2C%5Cn%20%20%5C%22name%5C%22%3A%20%5C%22adsfadsfadsfdsf%5C%22%2C%5Cn%20%20%5C%22slug%5C%22%3A%20%5C%22S%3Aadsfadsfadsfdsf1%3AGroup%5C%22%2C%5Cn%20%20%5C%22imagedByImage%5C%22%3A%20null%5Cn%7D%22%5D%7D
Following that links seems to suffer from some encoding issues, b/c the error message I can see there is truncated to Missing field 'chatChannel' while writing result %o.

Link to Reproduction

https://go.apollo.dev/c/err#%7B%22version%22%3A%223.8.4%22%2C%22message%22%3A10%2C%22args%22%3A%5B%22chatChannel%22%2C%22%7B%5Cn%20%20%5C%22__typename%5C%22%3A%20%5C%22Group%5C%22%2C%5Cn%20%20%5C%22intro%5C%22%3A%20%5C%22%5C%22%2C%5Cn%20%20%5C%22info%5C%22%3A%20%5C%22%5C%22%2C%5Cn%20%20%5C%22locatedByAddress%5C%22%3A%20null%2C%5Cn%20%20%5C%22categorizedBy%5C%22%3A%20null%2C%5Cn%20%20%5C%22administeredBy%5C%22%3A%20%7B%5Cn%20%20%20%20%5C%22__typename%5C%22%3A%20%5C%22MembershipConnection%5C%22%2C%5Cn%20%20%20%20%5C%22count%5C%22%3A%200%2C%5Cn%20%20%20%20%5C%22edges%5C%22%3A%20%5B%5D%5Cn%20%20%7D%2C%5Cn%20%20%5C%22id%5C%22%3A%20%5C%22U%3A8f443196-5370-4ac2-a997-d8211042e972%3AGroup%5C%22%2C%5Cn%20%20%5C%22name%5C%22%3A%20%5C%22adsfadsfadsfdsf%5C%22%2C%5Cn%20%20%5C%22slug%5C%22%3A%20%5C%22S%3Aadsfadsfadsfdsf1%3AGroup%5C%22%2C%5Cn%20%20%5C%22imagedByImage%5C%22%3A%20null%5Cn%7D%22%5D%7D

Reproduction Steps

Folllow the link basically.

@phryneas
Copy link
Member

phryneas commented Sep 29, 2023

Thanks for the bug report! This was an error in our Documentation error page and will be fixed soon via #11261.

In the meantime, you can get these errors to display with the full text locally by adding

import { loadErrorMessages, loadDevMessages } from "@apollo/client/dev";

if (__DEV__) {  // Adds messages only in a dev environment
  loadDevMessages();
  loadErrorMessages();
}

to your codebase.

@JonasDoe
Copy link
Contributor Author

Oh, I see! Sorry for hassle then, and thank you for the quick response and the workaround!

@phryneas
Copy link
Member

No, thanks a lot for bringing this up - your issue here triggered me creating that fix :)

@JonasDoe
Copy link
Contributor Author

No, thanks a lot for bringing this up - your issue here triggered me creating that fix :)

Just coming to my mind - the max URL length might cause some trouble as well in some browsers. Anyway, thank you and have a nice day! :)

@github-actions
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
For general questions, we recommend using StackOverflow or our discord server.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants