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

error sending request #55

Closed
esasiyunx opened this issue Aug 25, 2022 · 5 comments
Closed

error sending request #55

esasiyunx opened this issue Aug 25, 2022 · 5 comments

Comments

@esasiyunx
Copy link

hi, I would be very grateful if you could help me solve this problem.

RequestError: Cookie has domain set to the public suffix "localhost" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain:true, rejectPublicSuffixes: false}.
at IS._destroy (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:67:20534)
at _destroy (node:internal/streams/destroy:102:25)
at IS.destroy (node:internal/streams/destroy:64:5)
at /Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:67:2740
at Object.xYe [as getPublicSuffix] (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:44:146717)
at wYe (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:44:148339)
at eb.findCookies (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:44:149896)
at eb.findCookies (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:44:147801)
at Ss.getCookies (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:62:11285)
at Ss.getCookies (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:44:147801)
at Ss.getCookieString (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:62:11638)
at /Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:44:147935
at new Promise ()
at Ss.getCookieString (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:44:147835)
at IS._makeRequest (/Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:67:15932)
at /Users/aydinyildirim/.vscode/extensions/anweber.vscode-httpyac-5.6.3/dist/extension.js:67:2508
at processTicksAndRejections (node:internal/process/task_queues:96:5)

@AnWeber
Copy link
Contributor

AnWeber commented Aug 25, 2022

@esasiyunx Have you just recently started having this error? tough-cookie accidentally introduced a breaking change (see salesforce/tough-cookie#246) that forces exactly this setting for localhost. I haven't integrated affected versions yet, so I'm surprised. In vscode-httpyac I introduced the issue, stupid mistake (https://github.com/AnWeber/vscode-httpyac/blob/main/package-lock.json#L8067) Will fix it. Or rather, 11 minutes ago, a new patch was announced. I am waiting for that

AnWeber added a commit to AnWeber/httpyac that referenced this issue Aug 25, 2022
@AnWeber
Copy link
Contributor

AnWeber commented Aug 25, 2022

@esasiyunx I have provided a new version with the update from tough-cookie. Can you please test your use case as well. My problems with dependency are solved.

@esasiyunx
Copy link
Author

not resolved with your change but i was able to fix it by turning this setting off

Ekran Resmi 2022-08-26 01 00 03

@AnWeber
Copy link
Contributor

AnWeber commented Aug 26, 2022

With the next release you can configure the CookieJar options directly. With this you could possibly experiment what triggers the error and how to avoid it.

@AnWeber
Copy link
Contributor

AnWeber commented Sep 6, 2022

v5.7.0 is released. Could you please try your use case again. You could noew configure CookieJar with setting httpyac.cookieJarEnabled

@AnWeber AnWeber closed this as completed Sep 6, 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

2 participants