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.

Invalid stream generated

See original GitHub issue

I have following pass structure in my code: examplepass.pass (folder)

icon.png icon@2x.png logo.png logo@2x.png pass.json

keys (folder)

signerCert.pem signerKey.pem wwdr.pem

const Passkit = require("passkit-generator"); const fs = require('fs'); let pass = new Passkit.Pass({ model: "./examplepass", certificates: { wwdr: "./keys/wwdr.pem", signerCert: "./keys/signerCert.pem", signerKey: { keyFile: "./keys/signerKey.pem", passphrase: "mac001" } }, overrides: {}, shouldOverwrite: true }); pass.generate() .then(stream => { var file = fs.createWriteStream("examplepass.pkpass") stream.on('finish', () => { console.log('done') }) stream.on("error", function (error) { console.error(error); process.exit(1); }) stream.pipe(file); }) .catch(err => { console.log("Error: " + err) });

Everything is working fine and I am not getting any error. But when i try to open the pass it says unable to open the pass.

Same example structure, If I try with utility here then it is working fine and pass is created.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
jennysharpscommented, Oct 30, 2018

Hi @alexandercerutti thanks for your quick response, it was actually that my certificate setup was not done properly.

For anybody reading this, if you install your certificate & it doesn’t ask you to add it to keychain, it won’t install properly & you won’t be able to export it as a .p12 file. I exited Keychain Access app and tried to install my certificate again, and it took me through a completely different flow than it did the first time, which resolved my problem & allowed me to export as a .p12 file as per the instructions.

Thanks!

0reactions
alexandercerutticommented, Nov 4, 2018

Okay, glad you solved 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

invalid stream header" when reading ObjectInputStream sent ...
tldr; The problem is using ObjectInputStream (Java) which only works with data generated by ObjectOutputStream (Java) .
Read more >
Error on Dspace 6.3 invalid stream header: 00000000
Now the gui start but if I try to go on some items I have always the invalid stream header: 00000000. I see...
Read more >
An invalid stream profile target may cause the TMM processes ...
An invalid stream profile target may cause the TMM processes to restart. This issue occurs when all of the following conditions are met:....
Read more >
"Invalid Stream Format" and "Access Violation" error when ...
When opening the Session Browser or connecting to a database, the error is generated: "Invalid Stream Format”.
Read more >
Weka segmentation plugin error - Image.sc Forum
Error generated is below: Many thanks in advance for any help. ... StreamCorruptedException: invalid stream header: 30093009 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