Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid object ID #6

Open
benson52541110 opened this issue Jan 6, 2023 · 1 comment
Open

Invalid object ID #6

benson52541110 opened this issue Jan 6, 2023 · 1 comment
Labels
needs more info Issue requires more information from reporter in order to diagnose

Comments

@benson52541110
Copy link

benson52541110 commented Jan 6, 2023

After I run GOOGLE_APPLICATION_CREDENTIALS=/Users/username/Downloads/pass-converter-main/file.json node app.js demo .
The console show this error.
Encoded jwt too large (2154) - stripping object from payload and creating via api
Error creating object GaxiosError: not a valid id
errors: [
{
message: 'not a valid id: xxx.xxx',
domain: 'walletobjects',
reason: 'invalidResource'
}
]
截圖 2023-01-06 上午11 43 58

@stephenmcd
Copy link
Contributor

Hi there,

There are two entirely unrelated items your issue refers to here. The first is the console message you copied, "Using this console may allow attackers..." - it's simply a warning the Google Wallet site shows to all users when visiting, and it's entirely unrelated to this project, so feel free to disregard it as far as getting the pass converter to work is concerned.

Secondly is your actual issue, which is that the ID being used to create the Google Wallet pass is invalid. I can't tell you why because it appears to be edited out of the error message (it's shown as "xxx.xxx"). The ID is derived from both the googleIssuerId setting (see the README for configuring this), and the passTypeIdentifier in the PKPass file's pass.json that you're trying to convert. If you think both of these are being derived correctly, you'll have to provide the actual values for them here in order for me to help debug the issue any further.

@stephenmcd stephenmcd changed the title Using this console may allow attackers to impersonate you and steal your information using an attack called Self-XSS.Do not enter or paste code that you don't understand Invalid object ID Jan 9, 2023
@stephenmcd stephenmcd added the needs more info Issue requires more information from reporter in order to diagnose label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Issue requires more information from reporter in order to diagnose
Projects
None yet
Development

No branches or pull requests

2 participants