Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Invalid Requests #5

Open
miyoyo opened this issue Apr 2, 2016 · 13 comments
Open

Invalid Requests #5

miyoyo opened this issue Apr 2, 2016 · 13 comments
Assignees
Labels

Comments

@miyoyo
Copy link

miyoyo commented Apr 2, 2016

Everytime I tried to register to a new service, A notification told me there was a network error, so after installing a packet sniffer, I found out that the request sent by pushjet is invalid, and returns a 301, moved permanently.
A screenshot of these packets can be found here:
http://imgur.com/7pJ3gzo

Forgetting to put https at the front of the URL also causes this error (with cURL at least)

@Mechazawa
Copy link
Member

Are you using HTTP or HTTPS? The api will redirect you if you are using HTTP. I’ll add an error for this so that it’s a little bit more obvious.

@miyoyo
Copy link
Author

miyoyo commented Apr 2, 2016

It seems like the application can't contact the server because of a 301 error, that could be fixed by talking to the server by Https, but the app can't do it.

This result in the app not working at all:
I can't subscribe to services
I can't fetch notifications
etc...

@miyoyo
Copy link
Author

miyoyo commented Apr 2, 2016

After further inspection, it seems that fetching messages does redirect OK, but it's impossible to subscribe to a service, as this is not redirected. Here is a screenshot of a packet sniffer, and you can see that there is only the "regular" http request, no encrypted one.
http://imgur.com/VvaW30c

@Mechazawa
Copy link
Member

Odd, is this the PlayStore build?

@Mechazawa
Copy link
Member

I'll be rolling out a new build tonight, hold tight!

@miyoyo
Copy link
Author

miyoyo commented Apr 5, 2016

I've got the message fetching to work by registering a new UUID to a service, then changing the UUID in the xml file to match the one I added

But the "push" still doesn't work, I still need to manually update it.

@LukeKerr
Copy link

LukeKerr commented Apr 5, 2016

I'm having problems as well, trying to add a new service to my android phone using the PushJet app but replies with Network issue.

@barnybug
Copy link

Same problems here

@LukeKerr
Copy link

Can you please give us an update because the app completely unusable?

@Mechazawa
Copy link
Member

Hey, sorry for the delay. I've sadly been incredibly busy with work and college lately. I'm looking at it right now.

@Mechazawa
Copy link
Member

The issue should be fixed, I'm uploading a new APK to the play store in a minute. A new issue has been opened to address the core problem (#6).

@Mechazawa
Copy link
Member

Have not had time to sign the binary yet. For now a unsigned by is is available. Remember to back up your subscriptions. It should sync them with the server upon reinstalling but it's better to be safe then sorry.

https://my.mixtape.moe/hqjmwm.apk

I'm sorry for the delay but I sadly have an extremely busy life.

@miyoyo
Copy link
Author

miyoyo commented Apr 30, 2016

The delay is no problem, as you are not paid for this work

The fix works perfectly, and my subscriptions were kept after reinstalling
Thanks for fixing it!

poqd7g3

@Mechazawa Mechazawa added the bug label May 1, 2016
@Mechazawa Mechazawa assigned Mechazawa and unassigned Mechazawa Aug 28, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants