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

Inform the user when the DeveloperAPI isn't enabled on the node #538

Open
nullun opened this issue Sep 16, 2024 · 0 comments
Open

Inform the user when the DeveloperAPI isn't enabled on the node #538

nullun opened this issue Sep 16, 2024 · 0 comments

Comments

@nullun
Copy link
Contributor

nullun commented Sep 16, 2024

It's seemingly obvious and took me all of about half a second to realise, but rather than showing the following message:

FetchError: invalid json response body at http://localhost:4001/v2/teal/compile?sourcemap=true reason: Unexpected token '/', "/teal/comp"... is not valid JSON

could the status code of 404 be checked first, and then have the full response be shown instead?

/teal/compile was not enabled in the configuration file by setting the EnableDeveloperAPI to true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant