-
Notifications
You must be signed in to change notification settings - Fork 37
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
version 3.3.0 does not preserve headers so you can't pass extra headers #1272
Comments
happened to me for version 3.3.1. 3.3.0 works fine. |
Same here as in #1272 (comment) In a synthetic Typescript test it works fine (source is transpiled on the fly) but not anymore once the source is built with esbuild for node 18.x. Need to stick with 3.3.0 until fixed. |
Seems likely that this is related to #1248, which was merged in 3.3.1 |
I seem to have the same problem with post requests - have checked with version 3.3.1 and 3.3.0 (and 3.2.24 just in case) running on node 18 with axios 1.6.7 - any headers I have set on axios either when creating axios or in the post call get removed. Just double checking for any silly mistakes I've made but wondering if anyone else has problems with post - original issue only mentioned get |
I also had issues with POST requests before downgrading to 3.3.0 |
Thank-you - I'll double check that I really did downgrade! |
Hey all, sorry to hear about this issue. Could you provide some help in reproducing this? I've added tests to ensure that headers are echoed back #1299 but I'm struggling to reproduce the issue. |
@attila's comment mentioned that they're using esbuild for bundling and running on nodejs 18, which matches my environment. |
Yes, esbuild. We are running on AWS in a Node 18 lambda environment - here are the relevant scripts in our "scripts": {
"build": "tsc && esbuild src/handlers/app.ts --minify --bundle --target=es2020 --platform=node --sourcemap --outdir=dist",
"package": "cd dist && zip -r dist.zip . && mv dist.zip .."
}, our {
"compilerOptions": {
"target": "ESNext",
"strict": true,
"preserveConstEnums": true,
"useDefineForClassFields": true,
"noEmit": true,
"sourceMap": true,
"module": "ESNext",
"moduleResolution": "node",
"esModuleInterop": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"allowSyntheticDefaultImports": true,
"allowJs": false
},
"exclude": ["node_modules"]
} |
Thanks for the details @chris-gilbert-2, I managed to reproduce this issue with this information! Seems like the change in #1248 caused this. I've changed the mechanism to call |
🎉 This issue has been resolved in version 3.3.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
It works like a charm, thank you @jamesmbourne for the fix! |
If you want to pass for example apiKey then it is not possible atm, The issue is with only Get method
The text was updated successfully, but these errors were encountered: