httpie / desktop

🚀 HTTPie Desktop — cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs.
https://httpie.io
Other
2.85k stars 32 forks source link

[Bug]: Inheriting API key from collection and passing as param doesn't work #93

Closed CliveStHelmet closed 9 months ago

CliveStHelmet commented 1 year ago

What happened?

API keys configured on a collection are not sent along with requests associated with that collection if using the As param option. They appear to work as expected if using the As header option. This applies to API keys retrieved from environment variables, and API keys configured directly within the collection. This happens in both the MacOS and Windows versions of HTTPie (both v2023.3.0).

Steps to reproduce?

1. Create a new collection
2. Set Auth to `API key`
3. Set type to `As param`
4. Add a key/value pair containing the name of the parameter and the API key to be passed
5. Create a new request
6. Set Auth to `Inherited`
7. Observe in the Preview that no query parameters are added

Can reproduce in MacOS and Windows.

What did you expect to happen?

I expected the query parameters configured on the collection to be inherited by requests associated with the collection.

Platform

macOS

HTTPie Desktop version

2023.3.0

Relevant log output

No response

Code of Conduct

di9eiko0dcikv commented 1 year ago

I have the same problem. I hope this bug will be fixed soon. It's a great tool. Thanks to the people who work hard for this project!

naxels commented 1 year ago

Unfortunately I discovered the same bug today. I'm using the macOS version: 2023.3.5 (2023.3.5)

jkbrzt commented 1 year ago

We’re working on a fix 🛠️

jkbrzt commented 9 months ago

✅ Fixed in v2024.1.1 →