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

[Other]: when i use oimws and use mini program sdk ,user login throw a excption #196

Closed
Coderyangg opened this issue Oct 28, 2024 · 5 comments

Comments

@Coderyangg
Copy link

What would you like to share?

10005 "error *errors.withStack not implement CodeError: init database ==> github.com/openimsdk/openim-sdk-core/v3/pkg/db.NewDataBase()@88: initDB failed ../../../../db/: ==> github.com/openimsdk/openim-sdk-core/v3/pkg/db.(*DataBase).initDB()@116: open db failed /root/openIM/oimws/_output/db/OpenIM_v3_yangge.db: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub: 10006 SdkInternalError"

Additional information

No response

@OpenIM-Robot
Copy link

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@icey-yu
Copy link
Member

icey-yu commented Oct 29, 2024

This error indicates that CGO was not enabled when running the SDK. Simply configure CGO to be in an enabled state to resolve this issue.

@Coderyangg
Copy link
Author

Coderyangg commented Oct 29, 2024

This error indicates that CGO was not enabled when running the SDK. Simply configure CGO to be in an enabled state to resolve this issue.
image
my CGO_ENABLE='1' ,and it still throw this error

@icey-yu
Copy link
Member

icey-yu commented Oct 30, 2024

Please delete /root/openIM/oimws/_output/db/OpenIM_v3_yangge.db and try again?

@skiffer-git
Copy link
Member

The oimws has been deprecated, and the new version of the jssdk is about to be released.

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

4 participants