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

Invalid secret key error on running build_runner #43

Closed
sudormrfbin opened this issue Jun 14, 2024 · 1 comment
Closed

Invalid secret key error on running build_runner #43

sudormrfbin opened this issue Jun 14, 2024 · 1 comment

Comments

@sudormrfbin
Copy link

Describe the bug
When running dart run build_runner build, the process exits with the following error:

InterfaceError: Invalid secret key: FormatException: Invalid character (at character 209)
...DNoT2lwxUVlLVpJS2U3xG5SxEtRIiwic3xiIxoicDlydWZpcFBFZx00bm5xa3RRLVg1ZyJ9====
                                                                          ^

package:edgedb/src/connect_config.dart 998:5   parseCloudInstanceNameIntoConfig
package:edgedb/src/connect_config.dart 760:13  resolveConfigOptions
package:edgedb/src/connect_config.dart 636:7   parseConnectConfig
package:edgedb/src/client.dart 324:9           ClientPool.getNewConnection
package:edgedb/src/client.dart 49:21           ClientConnectionHolder.getConnection
package:edgedb/edgeql_codegen.dart 109:28      EdgeqlCodegenBuilder.build

Reproduction
Create an edgeql file and run build_runner.

Expected behavior
.edgeql.dart file is generated without errors.

Versions (please complete the following information):

  • OS: Linux
  • EdgeDB version: 5.4+867a505
  • EdgeDB CLI version: 5.0.0+c9dfeec
  • edgedb-dart version: 0.5.0
  • Dart version: 3.4.3

Additional context
I'm using EdgeDB Cloud.

@sudormrfbin
Copy link
Author

I can confirm that #42 fixes 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

2 participants