klever-model-registry icon indicating copy to clipboard operation
klever-model-registry copied to clipboard

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

Open gaocegege opened this issue 4 years ago • 5 comments

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 avatar Sep 07 '20 07:09 gaocegege

/reopen

Why we gonna change the header to application/json?

FogDong avatar Jan 13 '21 02:01 FogDong

/reopen

Why we gonna change the header to application/json?

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

simon-cj avatar Jan 13 '21 02:01 simon-cj

Is there any problem here?

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

gaocegege avatar Jan 13 '21 03:01 gaocegege

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 avatar Jan 13 '21 03:01 simon-cj

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

simon-cj avatar Jan 13 '21 03:01 simon-cj