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

GET request to https only works on the first request. Http works fine with redirects. #1944

Open
Sirafe opened this issue Mar 27, 2024 · 1 comment
Assignees
Labels

Comments

@Sirafe
Copy link

Sirafe commented Mar 27, 2024

Gold edition v 1.12.3

I'm having a difficulty with a get request, specifically accessing it via https instead of http using the redirects. The first time I run it is fine.

Example: https://site.com/api/v1/endpoint. I get a 200 response with package, and some set-cookie arraffinity stuff in the response.

Subsequent requests however return 500 until I restart bruno, and the first request works again.

However if I just do http://site.com/api/v1/endpoint it works fine when it's redirected to https.

Looking at my azure webapp log stream it seems the subsequent requests aren't including my own Cookie:"userState=foo" that I use for userState, and only sending the arraffinity cookies. Even though in bruno timeline my cookie is listed as the only cookie.

> GET https://site.com/api/v1/endpoint
> Accept: text/plain; x-api-version=1.0
> Cookie: userState=encodedstuff

2024-03-26 21:45:25 SITE GET /api/v1/endpoint X-ARR-LOG-ID=things 443 - x.x.x.x axios/1.6.8 ARRAffinity=otherstuff;+ARRAffinitySameSite=stuff - site.azurewebsites.net 500 0 0 496 2097 4 my cookie isn't here just the arraffinity cookies

If I run these same requests in postman they work fine, all the cookies are present.
2024-03-26 21:53:01 SITE GET /api/v1/endpoint X-ARR-LOG-ID=thigns 443 - x.x.x.x PostmanRuntime/7.37.0 userState=encodedstuff;+ARRAffinity=otherstuff;+ARRAffinitySameSite=stuff - site.azurewebsites.net 200 0 0 16563 2231 22

So it looks like Bruno isn't including my userState cookie when it sends a request after getting the arraffinity cookies?

@sreelakshmi-bruno
Copy link
Collaborator

Hi, quick update: we have a fix for this (#3850) and it will go out in the upcoming release!

@sreelakshmi-bruno sreelakshmi-bruno self-assigned this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants