Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: POST requests should use form data or JSON body, not query string parameters #2235

Open
rjp opened this issue Dec 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rjp
Copy link

rjp commented Dec 8, 2024

Environment:

  • OS: iOS 18.2 (22C150)
  • IceCubesApp version: 1.11.2

Description

Ice Cubes tries to create its app using query string parameters.

e.g. POST /api/v1/apps?client_name=IceCubesApp&redirect_uris=icecubesapp://&scopes=read%20write%20follow%20push&website=https://github.com/Dimillian/IceCubesApp

This does not work on Akkoma (and probably Pleroma) instances as they only take POST requests using form data or JSON bodies (which is recommended in the API docs - "It is expected that query strings are used for GET requests, and form data or JSON is used for all other requests.")

Additionally the example for creating an app in the docs explicitly shows a JSON body - https://docs.joinmastodon.org/methods/apps/#create

@rjp rjp added the bug Something isn't working label Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant