-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[bug] invalid utf-8 sequence of 1 bytes from index 1
#3761
Comments
Can you share your repo or at least a minimum reproduction? On a total wild guess, maybe try with a different ICNS icon file... |
@nothingismagick thanks for the tip! I've regenerated the ICNS and the error went away when running I'm still getting I will try to reproduce this in a new repository because the current repo is a little "too big to share". The minimum reproduction is kind of described in the issue: Just using the same code snippet as in the docs, nothing else. |
ok, we are finalizing some stuff on the updater - so maybe try with latest dev branch instead of the release ? |
@nothingismagick unfortunately it hasn't fixed the issue. The error is now |
ok, pinging @lucasfernog because he has been working on the updater. The better error message is now a bit more helpful. what code editor are you using, what encoding are you using? |
Thanks! I'm using VSCode and I'm not entirely sure what encoding I'm using. I haven't been touching the encoding in any way on purpose, so I'm guessing Also, were there any differences between the v1 release contenders and the versions before when it comes to encoding? If so, I could have overlooked something when updating. As for the updater, I'm strictly following the docs (https://tauri.studio/docs/distribution/updater) and don't have anything extra on top. |
Did you set up the pubkey properly on tauri.conf.json? And also the TAURI_PRIVATE_KEY variable. |
Seems like your public key might be wrong. It must have exactly 152 characters. This is an example output of
In this case, you must set |
Thank you so much! It seems to have solved it 🥳 I'm not sure if this is of any help now, but:
|
Thanks for the feedback! I've introduced better validations of response types and added some unit tests too, so finding the issue will be easier next time. |
Describe the bug
Hello,
I get
invalid utf-8 sequence of 1 bytes from index 1
error in two cases:tauri build
. The build process successfully finishes, however this error is shown in the logs.Updater: Signature encoding error: invalid utf-8 sequence of 1 bytes from index 1
.Reproduction
I'm not really sure where to search for the culprit, therefore, unfortunately, I cannot specify the reproduction steps in the new repo. But these are the steps I take in my repository:
Run
tauri build
--- OR ---
Run the following script (from the docs)
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
I'm trying to build the app locally for macOS. I'm also signing and notarizing the build.
The text was updated successfully, but these errors were encountered: