Skip to content
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

[bug] Reverse Proxy to Harbor Returns text/plain instead of application/json #104

Open
gaocegege opened this issue Sep 7, 2020 · 5 comments · Fixed by #106
Open

[bug] Reverse Proxy to Harbor Returns text/plain instead of application/json #104

gaocegege opened this issue Sep 7, 2020 · 5 comments · Fixed by #106
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P0 Highest priority. Must be actively worked on as someone's top priority right now.

Comments

@gaocegege
Copy link
Member

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug
/kind feature

What happened:

When we call /api/v2.0/projects/{project_name}/repositories/{repository_name}/artifacts/{reference} to model registry, it returns text/plain response.

What you expected to happen:

Return application/json response.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

@gaocegege gaocegege added kind/bug Categorizes issue or PR as related to a bug. priority/P0 Highest priority. Must be actively worked on as someone's top priority right now. labels Sep 7, 2020
@simon-cj simon-cj reopened this Jan 13, 2021
@FogDong
Copy link
Member

FogDong commented Jan 13, 2021

/reopen

Why we gonna change the header to application/json?

@simon-cj
Copy link
Contributor

/reopen

Why we gonna change the header to application/json?

@gaocegege
Do you remember, I forgot it!!!

@gaocegege
Copy link
Member Author

Is there any problem here?

I remember that we had this patch because the reverse proxy cannot forward when the application is not json.

@simon-cj
Copy link
Contributor

Is there any problem here?

I remember that we had this patch because the reverse proxy cannot forward when the application is not json.

If set json forcely,ormb pull will not work.

@simon-cj
Copy link
Contributor

Oh, In klever, the frontend will request proxy api, maybe it is the issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P0 Highest priority. Must be actively worked on as someone's top priority right now.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants