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

Misleading error message when successfully creating job but failing to fetch it immediately #37

Closed
christophfriedrich opened this issue Nov 5, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@christophfriedrich
Copy link
Collaborator

Steps to reproduce:

  1. Use the VITO backend
  2. Add any process graph
  3. Click "Create", enter a name and submit
  4. Watch the POST being successful in the console
  5. See that this gets followed by an immediate GET https://openeo.vito.be/openeo/1.0/jobs/undefined, which is an error 404
  6. See this error message on the screen:

Sorry, could not create a batc...
Request failed with status code 404

So the error message obviously originates from the GET, but it reads as if the POST was at fault (at least the part that is readable, before the ellipsis).

@m-mohr m-mohr self-assigned this Nov 5, 2020
@christophfriedrich
Copy link
Collaborator Author

It seems like the undefined in the GET request is NOT due to the backend not supplying the identifier in its reply to the POST:

image

@m-mohr
Copy link
Member

m-mohr commented Nov 17, 2020

This is an issue on VITOs side, a CORS header is missing, see Open-EO/openeo-python-driver#54
I improved (mainly) the JS client to report better error messages.

@m-mohr m-mohr transferred this issue from Open-EO/openeo-web-editor Nov 17, 2020
@m-mohr m-mohr closed this as completed Nov 17, 2020
@m-mohr m-mohr added the enhancement New feature or request label Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants