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

dart run auto_updater:generate_keys error #52

Open
cpsoft opened this issue Jun 28, 2023 · 7 comments
Open

dart run auto_updater:generate_keys error #52

cpsoft opened this issue Jun 28, 2023 · 7 comments

Comments

@cpsoft
Copy link

cpsoft commented Jun 28, 2023

Building package executable...
Built auto_updater:generate_keys.
Unhandled exception:
FormatException: Unexpected extension byte (at offset 10)
#0 _Utf8Decoder.convertChunked (dart:convert-patch/convert_patch.dart:1851:7)
#1 _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:304:28)
#2 _Utf8ConversionSink.add (dart:convert/string_conversion.dart:300:5)
#3 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:69:18)
#4 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
#5 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#7 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#8 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:776:19)
#9 _StreamController._add (dart:async/stream_controller.dart:650:7)
#10 _StreamController.add (dart:async/stream_controller.dart:598:5)
#11 _Socket._onData (dart:io-patch/socket_patch.dart:2381:41)
#12 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
#13 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#14 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#15 _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:776:19)
#16 _StreamController._add (dart:async/stream_controller.dart:650:7)
#17 _StreamController.add (dart:async/stream_controller.dart:598:5)�

@lingsifeng
Copy link

I also ran into this issue, how did you solve it?

@yuhaya
Copy link

yuhaya commented Jul 25, 2023

same

@yuhaya
Copy link

yuhaya commented Jul 25, 2023

It may be a network problem. After adjusting the network here, it is normal.

@Eric0x
Copy link

Eric0x commented Oct 24, 2023

auto_updater/bin
/generate_keys.dart
Finally, this was executed windows/WinSparkle-0.8.0/bin/generate_keys.bat

@ismanong
Copy link

ismanong commented Aug 6, 2024

windows中文环境下的dart的Process进程需要chcp 65001

@a1239897580
Copy link

同样的问题 怎么解决

@LIAO-JIA-LE
Copy link

LIAO-JIA-LE commented Sep 6, 2024

I tried using this method to resolve the issue and successfully fixed it. I hope it helps you.

The issue might be caused by using OpenSSL. First, you need to install OpenSSL (I didn’t use Chocolatey(It may be because if you use Chocolatey to install it, it will automatically add the path to openssl to the environment variable.); instead, I downloaded Win64 OpenSSL v3.3.2 EXE from this link).

Next, you need to set the OpenSSL executable in the environment variables, making sure that when you run dart run auto_updater:generate_keys, it can utilize OpenSSL to generate keys. (I added C:\Program Files\OpenSSL-Win64\bin to the system environment variable PATH, as openssl.exe is located in this directory.)

After that, running dart run auto_updater:generate_keys should work!

I hope this helps you resolve the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants