Closed sumit03guha closed 9 months ago
Can you share with us the error that you are receiving when you perform the getSchemas call? here you have an image with the content that you should provide to check.
@Groovytent I am getting the following response, which is from ngrok
.
It is the public url that is pointing towards my localhost port of 3002.
As we observe error is related to the ngrok, Please paste the address of your ngrok into a browser and hit visit site and see if that fixes it. If not, you will have to investigate other workaround alternatives.
As mentioned in the readme, you can also give local tunnel a try if you keep having issues.
@Groovytent upon opening the ngrok link and hitting visit site, the Issuer UI API opened up. I tried out the get schemas API and received the following response.
The endpoint /v1/schemas
requires authentication. Does it work from the UI?
@amonsosanz yes, you are correct. I have set the authentication username and password.
It is working when I am hitting the /v1/schemas
API using the localhost:3002
it is giving a 200
response, but when I am hitting the same API using the ngrok url, after setting the authentication, it is giving Response Status: Failed to fetch (CORS or Network Issue)
.
Yep this happens to some users with ngrok. This is why we recommend local tunnel.
Take a look to this video where I setup local tunnel.
https://github.com/0xPolygonID/issuer-node/issues/520#issuecomment-1826269876
This issue is stale because it has been open 20 days with no activity. Remove stale label, add the enhancement label or comment to avoid closing it in 10 days.
This issue was closed because it has been stalled for 10 days with no activity.
Expected behaviour
Actual behaviour
Expected array, received string
Steps to reproduce the problem
System information
Issuer node version:
v2.3.6
OS & Version:MacOS 14.2 M1
Browser & Version:Chrome/Firefox/Safari/Edge