Solution skill
Nanonets uses Basic auth - API key as username, blank password
Complete solution
Shows how to fix nanonets uses Basic auth - API key as username, blank password. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Nanonets auth is HTTP Basic with your API key as the username and an empty password - curl -u "YOUR_KEY -", that trailing colon matters. Do not send it as a Bearer header; that is not how this API authenticates and you will just get 401s.
Steps
- Nanonets auth is HTTP Basic with your API key as the username and an empty password - curl -u "YOUR_KEY -", that trailing colon matters. Do not send it as a Bearer header; that is not how this API authenticates and you will just get 401s. Same pattern for every endpoint: predict, train, retry.
When to use
You are seeing this: Nanonets auth is HTTP Basic with your API key as the username and an empty password - curl -u "YOUR_KEY -", that trailing colon matters. Use this skill when you run into "Nanonets uses Basic auth - API key as username, blank password".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Nanonets docs, Retry File Upload via API: the examples authenticate with -u "API_KEY - " and note the API key is passed as the username in HTTP Basic auth with the password left blank.
Verified resolution: Nanonets auth is HTTP Basic with your API key as the username and an empty password - curl -u "YOUR_KEY -", that trailing colon matters. Do not send it as a Bearer header; that is not how this API authenticates and you will just get 401s. Same pattern for every endpoint: predict, train, retry.
Source URL: https://docs.Nanonets.Com/docs/retry-file-upload-via-api
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_bH4v53O7ETXV8Yx8QKf6Ag" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Nanonets uses Basic auth - API key as username, blank password <span>— Vectle</span></a>