-
Notifications
You must be signed in to change notification settings - Fork 6
Throws an exception even if it sends of the notification #48
Comments
For info, there was no try catch that could handle this error for me, because I dont await the procedure. But according to the examples, await should no be nessecary? I tried out with await and the error was caught. But the notification is still sent. |
A second update, I just tried with another identity which was just newly connected, and then I did not get that error. Maybe it has something to do with that the token might have expired, because I have seen that before, and maybe something about the server not responding the right thing back. But it is still weird that the service still delivers the VC to the mobile, to the mobile that got the error, not the other one. |
So the main problem is that I dont get the core error message. So I dont know what the mistake is. It would be great to know what the error is, because it might be outdated push token |
Hi. Do you know which endpoint is hitting? |
@ajunge it seems to be hitting "https://api.uport.me/pututu/sns" But to update, because of this error, I am not getting the pushes anymore. So the initial issue has gone from ish working, to not working. But the problem of not reporting the right problem back to the user is still there. The res in this situation is 500 so it will reach the line: |
@ajunge did you figure out anything in regards to this? |
What is the process of this? We are getting this error multiple times and I need to understand what the error is and not just 500 [Object object] |
@vongohren We are monitoring to discover the root cause. In the screenshot's provided we can see the body of an error message stating "Endpoint is Disabled" . We know the endpoint is being automatically disabled due to an invalid token (for some reason). As you noted previously a new ID did not have the issue - so we think you are correct about the token being part of the problem. We have identified improvements that we will make to fix this, but it will take some time. If you request a new push token for the affected users - does it resolve the issue in the short term? |
@vongohren we have pushed an alpha version of the library that will print the object's message if there is one. |
So it have been back and forth, one point it was down as Andres fixed it. But the first problem is that I can't report back as the main problem is object object, on our dev and prod servers. But I will test out that alpha and give an insight to what the problem can be. We have experienced that the token has been out of date, but back in the days, we got the message. I will see what messages we get the most |
Describe the bug
I call the method pushTransport like this
And all is good the notification comes to the user, but for some reason, it throws an error aswell, see screenshot. I get unhandled rejection, because I dont have a try catch on this. But will add it now
To Reproduce
Just run this lib with this feature.
Im sending of a VC so the subject is set.
Expected behavior
I expect the error not to come.
Screenshots
Desktop (please complete the following information):
Node.js - 9.10.0
"uport-transports": "0.2.2"
The text was updated successfully, but these errors were encountered: