readthedocs instructions outdated #467

Open
opened 2024-08-16 14:12:41 +02:00 by chrysn · 2 comments

In early 2024, readthedocs started making a secret mandatory; https://docs.codeberg.org/advanced/using-webhooks/ still describes how to use secret-less webhooks.

I'd update the docs, but I haven't gotten it to run: With the hook and secret readthedocs gave me, I can call it manually as

$ curl https://readthedocs.org/api/v2/webhook/aiocoap/276502/ -X POST -d 'token=hexhexhexthatrtdgaveme'
{"build_triggered":true,"project":"aiocoap","versions":["latest"]}

but I haven't found any set of settings in Forgejo style webhooks that would produce a successful result there. (The token is apparently not sent in a token field, and all test delivieries result in a 403 with {"detail":"Authentication credentials were not provided."})

In early 2024, readthedocs started making a secret mandatory; https://docs.codeberg.org/advanced/using-webhooks/ still describes how to use secret-less webhooks. I'd update the docs, but I haven't gotten it to run: With the hook and secret readthedocs gave me, I can call it manually as ```sh $ curl https://readthedocs.org/api/v2/webhook/aiocoap/276502/ -X POST -d 'token=hexhexhexthatrtdgaveme' {"build_triggered":true,"project":"aiocoap","versions":["latest"]} ``` but I haven't found any set of settings in Forgejo style webhooks that would produce a successful result there. (The token is apparently not sent in a `token` field, and all test delivieries result in a 403 with {"detail":"Authentication credentials were not provided."})
Owner

Could you try using the Authorization Header field and set it to a value of Token TOKEN_HERE?
image

Could you try using the `Authorization Header` field and set it to a value of `Token TOKEN_HERE`? ![image](/attachments/ae3a123f-83d0-4252-9ed3-4b4cc2903229)

Hi,

I have the same issue. Tried token blah, Token blah, token=blah in Authorization Header. None of them works.

Hi, I have the same issue. Tried `token blah`,` Token blah`,` token=blah` in Authorization Header. None of them works.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Documentation#467
No description provided.