-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: actual error not forwarded if request is not timed out. #1559
Conversation
Thanks for opening this pull request! 🎉 Please check out our contributing guidelines. If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
@akshaybharambe14 can you provide a test for this customization so we can make sure the workflow works as intended? |
I checked existing tests and all were commented out. Anyways, I will add tests. |
ok thx |
Yup, I will work on that this weekend. |
@akshaybharambe14 any progress ? |
Yes, I added some test cases but but the result is not consistent. Same test that passed previously, might fail in next run. This is because of the select block. This could be the reason for commenting out the test cases. |
@akshaybharambe14 We had the same problems with the caching middleware Cause is that the github processes or the language is always different speed I have stabilized this by choosing the times more generously, so that the process has enough room to fluctuate Can you try this here also, gladly also mark as parallel, if that was not made |
Thank you @ReneWerner87 for these insights. I will try to implement the suggestions. |
Hi @ReneWerner87, I have added tests. Please have a look. |
Thx Had you looked to see if you could correct the other commented out ones as well? |
@akshaybharambe14 please check the race condition think this is because of the access to the parameters, if the request is reused, you can't access the parameters anymore |
I will check that @ReneWerner87. |
@ReneWerner87, is there any way to copy ctx? Seems like, we need to copy Ctx fields. |
@akshaybharambe14 |
@akshaybharambe14 do you have time to look at the problem again? |
When will this issue be resolved and released? |
Fixed by #2090 |
Forwarded the actual error if request succeeds/fails in given timeout window.
fixes #1496