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:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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).