Skip to content

[dargon2]_TypeError dart_lib_loader.dart in DartLibLoader.getPath #19

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

Closed
hasimyerlikaya opened this issue May 10, 2023 · 6 comments
Closed

Comments

@hasimyerlikaya
Copy link

Hi,

I have an API that was developed with Dart and is running on the Google CloudRun Platform.
The API is working perfectly on my local machine (an iMac M1), but I'm getting an error when I publish.
The error is showing that there is a problem with Dragon2. I use it to encode passwords.

Is there any solution for this error?
Thank you.

Configuration Details:

final result = await argon2.hashPasswordString(password, salt: saltBytes, memory: 128, iterations: 20, parallelism: 1);

Error Details:

image image
@hasimyerlikaya hasimyerlikaya changed the title _TypeError dart_lib_loader.dart in DartLibLoader.getPath [dargon2]_TypeError dart_lib_loader.dart in DartLibLoader.getPath Jul 5, 2023
@hasimyerlikaya
Copy link
Author

@tmthecoder Hi, can you check out this issue, please? I need to fix this error.

@tmthecoder
Copy link
Owner

@hasimyerlikaya how is this running on Google CloudRun? Is it prepacked or running in a dart environment?

@hasimyerlikaya
Copy link
Author

@hasimyerlikaya how is this running on Google CloudRun? Is it prepacked or running in a dart environment?

It runs inside a Docker container. Therefore, it is compiled as an exe. It runs on the local computer before compiling. But it doesn't work in docker package.

image

@tmthecoder
Copy link
Owner

Yeah that makes sense. It's odd to package ffi bundles with dart native compiled apps at the moment. I'm looking into fixes but unsure what my best path is for that at the moment

@hasimyerlikaya
Copy link
Author

Thank you very much. I hope you can fix that.

@tmthecoder
Copy link
Owner

This is also a duplicate of #17, so I'll close this. Currently you can use the workaround described there to circumvent the crash running a packaged executable

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