Skip to content

Frequently receiving {"code":null,"output":""} as a result #125

Open
@summera

Description

Hello, when building for Mac I'm very frequently getting notary exceptions and the result from the notarytool is {"code":null,"output":""}. This leads to the following error output when making with Forge:

An unhandled rejection has occurred inside Forge:
Error: Failed to notarize via notarytool

at Object.<anonymous> (MY_PATH/node_modules/@electron/notarize/lib/notarytool.js:97:23)
    at Generator.next (<anonymous>)
    at fulfilled (MY_PATH/node_modules/@electron/notarize/lib/notarytool.js:4:58)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

I'm building using an appleId and appleIdPassword:

  "packagerConfig": {
    "osxSign": {},
    "osxNotarize": {
      "tool": "notarytool",
      "appleId": process.env.APPLE_ID,
      "appleIdPassword": process.env.APPLE_PASSWORD,
      "teamId": process.env.APPLE_TEAM_ID
    },
...

After I retry making enough times, it eventually works but the cycle can be very time consuming and failures are happening pretty frequently. Any help would be greatly appreciated! Thanks.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions