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

Error: This app tried to connect to a canister on your behalf without the proper permissions #575

Closed
honopu opened this issue Aug 28, 2022 · 3 comments

Comments

@honopu
Copy link

honopu commented Aug 28, 2022

1. window.ic.plug.requestConnect();
2. window.ic.plug.createAgent({ whitelist: ["rd6wb-lyaaa-aaaaj-acvla-cai"],  host: "https://ic0.app" })
3. window.ic.plug.createActor({ canisterId: xxxx,  interfaceFactory: xxx });

Then call transfer method and throw error:
This app tried to connect to a canister (rd6wb-lyaaa-aaaaj-acvla-cai) on your behalf without the proper permissions. Please contact this project’s developers and share the error with them so they can fix it.
So the whitelist passed by createAgent is not working right now?

image
image

@Werwolf888
Copy link

I have exactly the same problem since yesterday. If you know how to solve this problem please let me know!

@honopu
Copy link
Author

honopu commented Aug 31, 2022

I have exactly the same problem since yesterday. If you know how to solve this problem please let me know!

You can use window.ic.plug.requestConnect({ whitelist: ["all your canister ids"] })

@riveign
Copy link
Collaborator

riveign commented Sep 2, 2022

Hi! This was fixed in the release 0.5.4.1 https://github.com/Psychedelic/plug/releases/tag/V0.5.4.1 closing the issue :D

@riveign riveign closed this as completed Sep 2, 2022
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

3 participants