Skip to content
Discussion options

You must be logged in to vote

ok I went down a rabbit hole on setting the multipart/form-data header, but it doesn't make a difference. Plus, I found out that no matter what custom data I put in a HttpMetaParams object, the encoding gets overwritten to application/json by dispatcher-http-hook-mastodon.inferEncoding if the request is "create."

But I know my real problem is "Invalid Credentials." So I cheated and modified your source to add my auth token into the request headers... and it worked!

Then I tested inserting my token into a custom auth header passed through a HttpMetaParams object, and that worked too.

While debugging, I found your function that merges custom headers into the request. And that is where I thi…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jncosideout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant