question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error 500 - No details - deleteInstanceId/deleteInstanceIdAsync

See original GitHub issue

[REQUIRED] Step 2: Describe your environment

  • Operating System version: windows 10 _ 10.0.17763
  • Firebase SDK version: 6.8.1
  • java version 1.8.0_211
  • Firebase Product: Messaging <-> InstanceId

[REQUIRED] Step 3: Describe the problem

I try to delete instance id with the following code: FirebaseInstanceId.getInstance().deleteInstanceIdAsync(idToDelete).get(); But I get a error 500: internal server error

Steps to reproduce & Relevant Code:

Step 1 Get token from android client app: FirebaseInstanceId.getInstance().getToken() Pass token from client to server

Step 2 Split token to get only instanceId part String[] instanceId = token.split(":"); FirebaseInstanceId.getInstance().deleteInstanceIdAsync(instanceId[0]).get();

Last line throw error 500

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
hugoblanccommented, Jun 7, 2019

EDIT => Completely wrong, it is definitely not working After investigating, I realized that even with the error 500, instance Id seems correctly deleted. If I call getToken from client after error 500 the new token is different and topics are not present anymore.

However stacktrace is correct ERROR - com.google.firebase.iid.FirebaseInstanceIdException: Instance ID "fix0PfuDfUQ": Internal server error. ERROR - java.lang.NoSuchMethodError: com.google.common.io.ByteStreams.exhaust(Ljava/io/InputStream;)J

1reaction
hiranya911commented, Jun 6, 2019

I’ve informed the relevant team about this. In the meantime any additional information you can provide would be helpful (full stacktrace of the error, debug logs etc).

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Clear Browser Cookies to Resolve “Error 500
This guide is for OSX Lion. Step 1: Open Safari Step 2: Click Safari then Preferences. Click on “Privacy” Step 3: Click on...
Read more >
What Is a 500 Error & How to Fix It | Sucuri Blog
1. This is a good troubleshooting step. This is done before looking for more debugging on your site to confirm that the issue...
Read more >
HTTP 500 Internal Server Error: What It Means & How to Fix It
HTTP Error 500 Browser Compatibility​​ This means that your website is easy to access and use on any browser or operating system. But...
Read more >
How to Fix a 500 Internal Server Error - Lifewire
The 500 Internal Server Error is a very general HTTP status code that means something has gone wrong on the website's server, but...
Read more >
500 Internal Server Error - HTTP - MDN Web Docs - Mozilla
This error response is a generic "catch-all" response. Usually, this indicates the server cannot find a better 5xx error code to response.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found