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.

java.io.IOException: INVALID_PARAMETERS

See original GitHub issue

Hello, i use you react-native-push-notification,run on the Android Api 27. Then in the RNPushNotificationRegistrationService class occur bellow error;

call(in the RNPushNotificationRegistrationService.java ):

try {
            String SenderID = intent.getStringExtra("senderID");
            InstanceID instanceID = InstanceID.getInstance(this);
            String token = instanceID.getToken(SenderID,
                    GoogleCloudMessaging.INSTANCE_ID_SCOPE, null);
            sendRegistrationToken(token);
        } catch (Exception e) {
            Log.e(LOG_TAG, TAG + " failed to process intent " + intent, e);
        }

error:

NPushNotification failed to process intent Intent { cmp=com.lalamove.huolala.lalaclient/com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService (has extras) }
    java.io.IOException: INVALID_PARAMETERS
        at com.google.android.gms.iid.zzaf.zzk(Unknown Source:420)
        at com.google.android.gms.iid.zzaf.zzj(Unknown Source:0)
        at com.google.android.gms.iid.zzaf.zzd(Unknown Source:180)
        at com.google.android.gms.iid.InstanceID.zze(Unknown Source:60)
        at com.google.android.gms.iid.InstanceID.getToken(Unknown Source:98)
        at com.dieam.reactnativepushnotification.modules.RNPushNotificationRegistrationService.onHandleIntent(RNPushNotificationRegistrationService.java:25)
        at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:76)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:164)
        at android.os.HandlerThread.run(HandlerThread.java:65)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:7

github_iconTop GitHub Comments

1reaction
famu1hundredcommented, Jan 21, 2020

I have this correctly in the .configure method and I still receive this error. Any other places to look or indication as to what this error means and how to solve?

0reactions
github-actions[bot]commented, Feb 11, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - java.io.IOException: INVALID_PARAMETERS while ...
While my GCM server is implemented, in implementing the GCM client, I get the exception: java.io.IOException: INVALID_PARAMETERS at this ...
Read more >
InvalidParameterException (Java Platform SE 7 )
This exception, designed for use by the JCA/JCE engine classes, is thrown when an invalid parameter is passed to a method. See Also:...
Read more >
Get an InvalidParameter error when trying to send a fax ...
I just quick looked at your code and thought that it was C#. Here is the example to send a Fax message using...
Read more >
Connection leak when executing query with invalid parameters
Executing such query and writing parameters into the OutputStream (i.e. when calling "ComQuery.sendSubCmd"), results in "java.io.
Read more >
Nextflow exits with AwsBatch executor - S3 multipart upload ...
... java.io.IOException: Failed to upload multipart data to Amazon S3 at com.upplication.s3fs. ... Error for part: 10022 Caused by: java.io.
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