Suddenly need authToken to access packages in Gitea registry #14564

Open
opened 2025-11-02 11:16:24 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @digitalextremist on GitHub (Jun 7, 2025).

Description

This seems like #14498 and #13484 returned... but intermittently.

When using docker to build a new image, with all the appropriate settings to access an extra host, Gitea returns 401 intermittently.

Then when I go to the URL which fails in my browser, I also see a login screen versus the package JSON.

I had to add my authToken to the .npmrc file in the project root, which Gitea does not itself require in the Package instructions.

And normally it does not need an authToken to pull packages, only to publish packages.

Gitea Version

1.23.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

I am using a local instance running in Docker

Database

MySQL/MariaDB

Originally created by @digitalextremist on GitHub (Jun 7, 2025). ### Description This seems like #14498 and #13484 returned... but intermittently. When using `docker` to build a new image, with all the appropriate settings to access an extra host, `Gitea` returns `401` intermittently. Then when I go to the URL which fails in my browser, I also see a login screen versus the package JSON. I had to add my `authToken` to the `.npmrc` file in the project root, which `Gitea` does not itself require in the `Package` instructions. And normally it does not need an `authToken` to pull packages, only to publish packages. ### Gitea Version 1.23.8 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? I am using a local instance running in `Docker` ### Database MySQL/MariaDB
GiteaMirror added the topic/packagestype/bug labels 2025-11-02 11:16:24 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14564