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

Extra slash in oauth URL #255

Closed
n8chz opened this issue May 1, 2024 · 3 comments
Closed

Extra slash in oauth URL #255

n8chz opened this issue May 1, 2024 · 3 comments
Assignees
Labels

Comments

@n8chz
Copy link

n8chz commented May 1, 2024

I'm trying to use this from localhost:3000 (the default) to https://cambrian.social/ (a GoToSocial instance). It can't connect to log in. The URL it uses (aside from the client_id parameter) is

https://cambrian.social//oauth/authorize?response_type=code&client_id=XXXXXXXXXXXXXXXXXXXXXXXXXX&scope=read%20write%20follow&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2F

After modifying this in the address bar to

https://cambrian.social/oauth/authorize?response_type=code&client_id=XXXXXXXXXXXXXXXXXXXXXXXXXX&scope=read%20write%20follow&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2F

I am able to log in and authorize the app (Tooty), but now I get an orange popup with the header HTTP 200 : Failed decoding JSON: followed by a very large array in JSON format which appears to be a Fediverse timeline. I would provide a pastebin, but apparently it contains NSFW content. At the bottom of this long JSON document it says Expecting null. I suspect this may be a problem with GoToSocial, which perhaps encodes JSON in some way that is incompatible with Tooty.

Works perfectly with my Mastodon account, though. My compliments to the chef!

@vjousse
Copy link
Collaborator

vjousse commented May 1, 2024

Indeed, tooty has only been tested with Mastodon as for now. I could have a look if you want, could I get an account on cambrian.social?

@vjousse vjousse self-assigned this May 1, 2024
@vjousse vjousse added the bug label May 1, 2024
@n8chz
Copy link
Author

n8chz commented May 2, 2024

Oh, wow, thanks. Certainly. Credentials in email to address on your github profile.

vjousse added a commit to vjousse/elm-mastodon-tooty that referenced this issue May 2, 2024
@vjousse
Copy link
Collaborator

vjousse commented May 2, 2024

Fixed in 140a764

I've opened another issue to track GoToSocial support #256

@vjousse vjousse closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants