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

Unclear error message "Client Error: Forbidden for url:" #86

Open
flossypurse opened this issue Nov 8, 2024 · 0 comments
Open

Unclear error message "Client Error: Forbidden for url:" #86

flossypurse opened this issue Nov 8, 2024 · 0 comments

Comments

@flossypurse
Copy link
Contributor

When using the store.resolve method, if the promise has already been resolved, an error is returned.

from resonate.storage.resonate_server import RemoteServer
# ...

store = RemoteServer(url="http://localhost:8001")
# ...

store.resolve(
            promise_id="<promise_id>",
            ikey=None,
            strict=False,
            headers=None,
            data=json.dumps(data),
        )

If the promise_id correlates to a promise that is already resolved, we return this error:

{"error":"403 Client Error: Forbidden for url: http://localhost:8001/promises/<promise_id>"}

Receiving an error is probably OK, but if we could make it explicit that the promise has already been resolved that might help debugging.

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