Closed Siedlerchr closed 1 year ago
@jason-fox Dockerhub shows that you were the latest to push these images. Do you have any idea what could be wrong?
The FIWARE version is just a clone of the GING original: https://hub.docker.com/r/ging/fiware-pep-proxy/tags
It looks like Express has been updated to return Content-type
text/html
unless explicitly set. It would be a simple PR to fix it.
After I did a docker pull last week, suddenly the docker container started to return the wrong mime type text/html instead of application/json. I see that 8.1.0 was updated 13 days ago: https://hub.docker.com/layers/fiware/pep-proxy/8.1.0/images/sha256-3a57d2551863a88fc6bdd9a4c7cc7a2771010f81a3c12d7282dc35ec490e240c?context=explore
I also tested 8.3.0, but it exhibits the same behavior.
Using curl it returns: curl -i --location --request GET 'http://172.18.1.16:1027/v2/entities/urn:ngsi-ld:Test:123456' -H 'Accept: application/json' -H 'Authorization: Bearer 1234'
On another server which I did not yet update, I got the correct response for 8.1.0: Working version 8.1.0 hash:
"Image": "sha256:1a7a42f75de7c12a2e607c094d4b6e9b7277e17b4b7c44adbc97edab0f8e5835",
curl -i --location --request GET 'http://172.18.1.16:1027/v2/entities/urn:ngsi-ld:Test:123456' -H 'Accept: application/json' -H 'Authorization: Bearer 1234'