fix: Brittle response parsing from notarytool - #191
Merged
MarshallOfSound merged 8 commits intoMay 14, 2024
Merged
Conversation
connorgmeehan
marked this pull request as draft
April 30, 2024 03:31
connorgmeehan
marked this pull request as ready for review
May 6, 2024 00:32
Contributor
|
Thanks for taking this on! It's a huge improvement by not truncating or swallowing the non-JSON text. |
rotu
reviewed
May 7, 2024
rotu
reviewed
May 8, 2024
rotu
reviewed
May 8, 2024
Contributor
|
I'm not sure what the return code actually tells us. Does a return code of 0 mean notarization succeeded? Does it mean that the request was submitted correctly (and may have failed)? Here are the four cases to consider:
|
Contributor
Author
|
From a little testing here's what I found
Yep, seems to be |
connorgmeehan
force-pushed
the
fix/print-notarize-error
branch
from
May 8, 2024 23:29
5dc95c6 to
195de70
Compare
…n#195) Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
|
I hope this fix will be released soon, I'm stuck not knowing the cause of the error I get... |
Contributor
|
@jonluca could you get this out the door or get another active maintainer's eyes on it please? |
…otarize into connorgmeehan-fix/print-notarize-error
MarshallOfSound
approved these changes
May 14, 2024
VerteDinde
approved these changes
May 14, 2024
erickzhao
approved these changes
May 14, 2024
|
🎉 This PR is included in version 2.3.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This was referenced Sep 8, 2024
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Electron builder is not handling responses from notarytool on my device (MacOS Sonoma 14.4.1, XCode 15.2). The issue is it's trying to JSON.parse a string with the value:
Solution
spawnJSON.parsefails.Compared log when errors
Previous logs
New logs