docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
232 stars 40 forks source link

Docker Hub Build Trigger does not work via Cloudflare Worker #2090

Closed thasmo closed 2 years ago

thasmo commented 3 years ago
fetch('https://hub.docker.com/api/build/v1/source/.../trigger/.../call/', {
    method: 'POST',
});

returns ERROR 400 when running via cloudflare worker.

Running this in a browser console works as expected.

Where can I find official documentation about docker hub build triggers? Thanks!

nebuk89 commented 3 years ago

Hey! We don't have a public API/docs for this yet, we are building out our API docs here at the moment actively: https://docs.docker.com/docker-hub/api/latest/

Keep an eye for changes to come in over the next couple of months as we work through the backlog of documenting everything

thasmo commented 3 years ago

When calling the cloudflare worker URL in the browser, the Docker API returns error 400. When calling the cloudflare worker URL via the cloudflare worker web dashboard, the Docker API returns success 202.

So, why is that? Where can I find the documentation for the api/build/v1 endpoint?

github-actions[bot] commented 2 years ago

We are clearing up our old issues and your ticket has been open for 6 months with no activity. Remove stale label or comment or this will be closed in 15 days.