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

fix: Change timeout to get BI temporary token #1391

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Conversation

doubleface
Copy link
Contributor

In some (too many) case, BI can take more than 30s to give response.
This leads to timeout error message to the user which occur in their
first connection or when renewing their connection.
And since these errors occur in the browser, they are not visible
in our usual connector error dashboard.

We saw that when BI is long to respond, it takes usually 35s to 40s but
in most cases it takes 2s to 3s.

@doubleface doubleface requested a review from Crash-- November 30, 2021 08:54
@@ -86,7 +87,7 @@ const createTemporaryToken = async ({ client, konnector, account }) => {
client,
jobResponse.data.attributes,
'result',
30 * 1000
TEMP_TOKEN_TIMOUT_S * 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We saw that when BI is long to respond, it takes usually 35s to 40s but
in most cases it takes 2s to 3s.

Why not increasing to 3s instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dans la plupart des cas, la durée est de 2 à 3 secondes. Mais dans certains cas assez rares (mais difficiles à dénombrer en totalité car plusieurs problèmes provoquent le même symptôme) cela dure plus de 30s et cela abouti à une erreur fatale pour l'utilisateur.

Cela arrive suffisamment pour que des utilisateurs le remontent régulièrement.

Et je préfère mettre limite à 60s au lieu de 33 ou 34 pour avoir de la marge

Copy link
Contributor

@Crash-- Crash-- Nov 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah oui au temps pour moi, j'ai mal compris. 6*1000 = 60s et pas 6s 😮‍💨

In some (too many) case, BI can take more than 30s to give response.
This leads to timeout error message to the user which occur in their
first connection or when renewing their connection.
And since these errors occur in the browser, they are not visible
in our usual connector error dashboard.

We saw that when BI is long to response, it takes usually 35s to 40s but
in most cases it takes 2s to 3s
@doubleface doubleface merged commit 9dda46f into master Nov 30, 2021
@doubleface doubleface deleted the fix/tempTokenTimout branch November 30, 2021 10:21
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

Successfully merging this pull request may close these issues.

2 participants