Help running snap on the server (SNAP_ORIGIN) #1524
devinvestidor
started this conversation in
General
Replies: 2 comments 3 replies
-
The snap origin should be either localhost:8080 or an npm ID like
Also if you have a repo I can look at, I can give you better advice. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Great thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using @metamask/template-snap-monorepo and I'm trying to connect snap on server, but my connection call: localhost. In README.md says to change .env.production to set SNAP_ORIGIN,
So I change SNAP_ORIGIN to DNS adress but in localhost I have this msg: MetaMask - RPC Error: Invalid snap ID: Expected the value to satisfy a union of intersection | string`, but received: "https://snapconnect.us/%22
And on server I have this msg: An error happened: Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
My .env.production: SNAP_ORIGIN=https://snapconnect.us/
Any sugest?
Beta Was this translation helpful? Give feedback.
All reactions