Bug: error sending request for url
- Dominant language
- Rust
- Stars
- 0
- Forks
- 0
- Avg merge
- 2h 7m
- Merged PRs (30d)
- 2
Description
Summary: unable to call API via fossapi CLI
Installation:
`curl --proto '=https' --tlsv1.2 -LsSf https://github.com/fossas/fossapi/releases/latest/download/fossapi-installer.sh | sh`
Configuration:
`% export FOSSA_API_KEY=`
Invocation:
```
% fossapi list projects
Error: HTTP error: error sending request for url (https://app.fossa.com/api/v2/projects?page=1&count=20)
```
Debug:
* I opened that URL in the browser and found I was able to connect and fetch the page.
* I tried two different API keys
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing `fossapi list projects` with `FOSSA_API_KEY` set, then trace the request to `https://app.fossa.com/api/v2/projects?page=1&count=20`. Compare the CLI's request behavior with the successful browser request and investigate why the command reports an HTTP sending error. Done means the command can fetch projects using a valid API key and the failure is covered by an appropriate verification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100