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

sequence of methods is important but not described or relevant #344

Closed
erhard opened this issue Apr 11, 2024 · 2 comments · Fixed by #345
Closed

sequence of methods is important but not described or relevant #344

erhard opened this issue Apr 11, 2024 · 2 comments · Fixed by #345
Labels
bug Something isn't working

Comments

@erhard
Copy link

erhard commented Apr 11, 2024

This works

let response = await spec.get(endpoint).withCore({agent: agent}).withAuth(user,pwd);
console.log(response);

This does not work (Auth error)

let response = await spec.get(endpoint).withAuth(user,pwd).withCore({agent: agent});
console.log(response);

I think withCore overwrites withAuth

I would wish that the sequence of the method calls is not relevant.

@leelaprasadv leelaprasadv added the bug Something isn't working label Apr 11, 2024
@leelaprasadv
Copy link
Member

Hi @erhard , Thanks for reporting the issue. Yes, it indeed is overriding the core options when the order is reversed.
We will look into this soon.

@leelaprasadv
Copy link
Member

Fixed in release in v3.6.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants