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

Invalid JSON response #125

Open
barefootcoder opened this issue Sep 29, 2020 · 7 comments
Open

Invalid JSON response #125

barefootcoder opened this issue Sep 29, 2020 · 7 comments

Comments

@barefootcoder
Copy link

I started getting the error above on 9/22. Since I hadn't updated the plugin in a while, I did that, and the problem went away. Today it's back, and it looks like there's been no new updates for me to try.

It shows this error when initially connecting; restarting Pidgin doesn't have any impact. I'm happy to provide any further logs or debugging if you can give me a pointer on how to enable or access that.

Thx for all your work on this plugin!

@EionRobb
Copy link
Collaborator

Can you get a debug log?

From the buddy list, Help->Debug Window, and then reconnect to the account.

@barefootcoder
Copy link
Author

Wow. That's a lot. Okay, I put it into a gist and tried to "black out" (figuratively speaking) any PII—please let me know if I missed anything so I can correct it ASAP. :-)

Let me know if there's more I can provide.

@EionRobb
Copy link
Collaborator

Ah, so this line:

(23:36:28) slack: api call: https://XXXXXXXXX.com@slack.com//api/rtm.connect?token=...&batch_presence_aware=1&presence_sub=true

shows that I didn't quite fix it enough in 058df12 :(
(the commit fixes when using the legacy tokens, but doesn't completely resolve using the legacy username)

As a workaround, you can edit the Slack account settings in Pidgin so that the 'host' is your subdomain, and that 'username' is your user.

@barefootcoder
Copy link
Author

Hmmm ... I guess I'm not sure what you mean by that. :-) Currently what I have is something like:

If I change that to, say,

then, after saving, the Accounts window shows my username as myname%mycompany.com@slack.com/, which gives me the same error.

I tried several different variations, but it always seems to want to glue the two pieces together with a %, which is (obviously, I think?) not working.

@barefootcoder
Copy link
Author

Wait! Now it's working. :-)

The magic incantation was:

I thought I'd tried that one already, but either I misremembered, or I did try it and it just had a transient error. But I stopped staring at it for a while and it just magically connected. Turns out the % is just fine. 👍

So I'm good for now. You can close the issue, or keep it open until you do a formal fix if you prefer. Or is this the sort of thing that's not worth fixing?

@EionRobb
Copy link
Collaborator

oh, that's a bit of an odd setup.... normally the username would have transitioned from

Is this an enterprise account, with your own custom hostname, rather than using the slack TLD?

@barefootcoder
Copy link
Author

It's definitely an enterprise account ... whether or not we have a custom hostname, I honestly don't know. Once I'm logged into Slack via the browser, the URL just starts with https://app.slack.com, but how I actually get there I don't know, because we have a password manager, so the URL it's actually going to to login is in there, and apparently I'm not allowed to view it, because it's a company-wide one rather than a personal one I set up myself.

But when I click on Slack in the password manager and try to watch the URL bar in my browser very closely, I think I do briefly see an URL inside our domain rather than a slack.com URL. But it flashes by so quickly that I can't be 100% sure.

Hope that helps ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants