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

ConnectionService retries on error when it should not #578

Closed
giso-cmo opened this issue Sep 22, 2021 · 2 comments
Closed

ConnectionService retries on error when it should not #578

giso-cmo opened this issue Sep 22, 2021 · 2 comments

Comments

@giso-cmo
Copy link

Bug Report

Steps to Reproduce:

Using the ConnectionService, accept a connection request using connectionService.acceptConnection(userId), for a user with a connection that has StatusEnum ACCEPTED.

Expected Result:

To throw the following error once:

An unknown error occurred while trying to connect to https://[...]:443/pod. Please check below for more information: {"code":500,"message":"request to userConnections/[...] failed with status 422, message:Status change requested is not consistent with current status."}

Actual Result:

Instead, the RetryWithRecovery kicks in and the connection service keeps trying to accept, each time throwing the same error

Environment:

symphony-bdk 2.2.1

@thibauult
Copy link
Member

Thanks @giso-cmo for this report 👍

Your issue seems to be related to #509, where we decided to retry on 500 errors.

However, from the log trace you shared above, it looks like the Symphony Backend is returning 500 because of a 422 received from an internal component. Which is the actual issue.

I'll sync internally to make sure this issue resolved in the next release, and keep you in touch through this ticket.

Thibault.

@ystxn
Copy link
Member

ystxn commented Jun 3, 2022

Update: this scenario now correctly returns 400 instead of 500 so the tooling also now responds correctly without requiring any changes

@ystxn ystxn closed this as completed Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants