You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To try to understand why this doesn't work, I simply started a http server with (with nothing, just for debug) and call it. Then, I can see an "HEAD" call on each execution:
$ python3 -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...
---> Doing first call with datasource: gomplate -d discogs=http://localhost:8000/ -i 'Album ID: {{ (ds "discogs").id }}'
127.0.0.1 - - [03/Feb/2025 23:49:17] "HEAD / HTTP/1.1" 200 -
127.0.0.1 - - [03/Feb/2025 23:49:17] "GET / HTTP/1.1" 200 -
---> Doing a second call with context: gomplate --context discogs=http://localhost:8000/test -i 'Album ID: {{ .discogs.id }}'
127.0.0.1 - - [03/Feb/2025 23:50:20] code 404, message File not found
127.0.0.1 - - [03/Feb/2025 23:50:20] "HEAD /test HTTP/1.1" 404 -
Indeed, when I call discogs with HEAD method I'm getting a 405:
Hi,
I'd like to use gomplate with the discogs API as datasource. Each call fails in a 405 status:
The same curl call success without problems:
To try to understand why this doesn't work, I simply started a http server with (with nothing, just for debug) and call it. Then, I can see an "HEAD" call on each execution:
Indeed, when I call discogs with HEAD method I'm getting a 405:
Is this behavior known? Is there any way to avoid this call?
Thank for your help :)
The text was updated successfully, but these errors were encountered: