mirror of
https://github.com/matze/wastebin.git
synced 2026-04-26 00:55:59 +03:00
[GH-ISSUE #122] Questions on how to send POST requests to the api #77
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#77
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @back-lacking on GitHub (Feb 19, 2025).
Original GitHub issue: https://github.com/matze/wastebin/issues/122
So I have an instance of wastebin that I have setup in my homelab and would like to use it as a place to post logs for some of the automated tasks i run. However, I'm having some trouble with sending a post request up to the API. (I'm a beginner to sending requests and interacting with APIs so some stuff might not be obvious to me).
Here is the curl command that i am running to test some stuff out
running this command returns nothing, and i dont get an output that is similar to what is shown in the docs
Is there something im missing? please let me know
@matze commented on GitHub (Feb 19, 2025):
Can you please specify which version you are running?
@matze commented on GitHub (Feb 19, 2025):
Oh, I can reproduce. The trailing
/is wrong.@back-lacking commented on GitHub (Feb 19, 2025):
this is what happens when i do it wihtout the trailing /
@matze commented on GitHub (Feb 20, 2025):
I still don't know which version you use, the
README.mdtargets the current HEAD repo state. If you use that, it should work. If you use one of the last released versions then it should be/instead of/api.P.S.:
expiresmust be a number not a string. But you will get an error then anyway.@back-lacking commented on GitHub (Feb 20, 2025):
how can i see what version im using?
according to
docker image lsim using the wastebin docker image on the latest tag, with the id2ff638790256@matze commented on GitHub (Feb 21, 2025):
Yes, the released Docker image is using the "old" route where you have to
POSTto/. You can find the version in the<head>metadata valuegenerator. I will update theREADME.mdto avoid future confusion.