Skip to content

java.lang.IllegalArgumentException: No enum constant com.google.firebase.ErrorCode.UNIMPLEMENTED #976

Closed
@gilyeon00

Description

@gilyeon00

Hello I'm a user using firebase admin 8.1.0.
When I was scheduling push notifications to Jenkins, I saw the following error log

java.lang.IllegalArgumentException: No enum constant com.google.firebase.ErrorCode.UNIMPLEMENTED
	at java.base/java.lang.Enum.valueOf(Enum.java:240)
	at com.google.firebase.messaging.FirebaseMessagingClientImpl$MessagingBatchCallback.createFirebaseException(FirebaseMessagingClientImpl.java:271)
	at com.google.firebase.messaging.FirebaseMessagingClientImpl$MessagingBatchCallback.onFailure(FirebaseMessagingClientImpl.java:258)
	at com.google.firebase.messaging.FirebaseMessagingClientImpl$MessagingBatchCallback.onFailure(FirebaseMessagingClientImpl.java:243)
	at com.google.api.client.googleapis.batch.BatchUnparsedResponse.parseAndCallback(BatchUnparsedResponse.java:209)
	at com.google.api.client.googleapis.batch.BatchUnparsedResponse.parseNextResponse(BatchUnparsedResponse.java:149)
	at com.google.api.client.googleapis.batch.BatchRequest.execute(BatchRequest.java:268)
	at com.google.firebase.messaging.FirebaseMessagingClientImpl.sendBatchRequest(FirebaseMessagingClientImpl.java:138)
	at com.google.firebase.messaging.FirebaseMessagingClientImpl.sendAll(FirebaseMessagingClientImpl.java:118)
	at com.google.firebase.messaging.FirebaseMessaging$2.execute(FirebaseMessaging.java:295)

Previously, I used the sendAll() method, and for some reason, I don't get this error every time.
When I looked at ErrorCode.class, there was no UNIMPLEMENTED enum
I updated it to 9.2.0 because I thought it might be a version problem.

However, it is written in the 'firebase exception code document' (https://firebase.google.com/docs/reference/kotlin/com/google/firebase/firestore/FirebaseFirestoreException.Code) , but there is no UNIMPLEMENTED enum in both 9.2.0 and 9.3.0 versions

In the end, I heard that sendAll() is not supported in version 9.2.0, so I'm going to use sendEach(), but I think it should still be added to enum.
I think it's a critical error in earlier versions of 8.x.x and earlier

I'd appreciate it if you could reflect it for users who might be embarrassed like me. Thank you😀

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions