Snowflake-Labs / sfguide-build-a-native-app-with-spcs

Apache License 2.0
2 stars 43 forks source link

Access Denied. Insufficient privileges to use the service endpoint. #1

Open ssoodlogan opened 5 months ago

ssoodlogan commented 5 months ago

Describe the bug

When running the service endpoint URL, getting - Access Denied. Insufficient privileges to use the .https://xxxxxx.snowflakecomputing.app/

It seems that even when the consumer account role has the Bind Service Endpoint privilege, it cannot access the public end point. As mentioned in the tutorial - the service is created by an "Application role". Hence, the account role gets access denied.

URL of where you see the bug - https://quickstarts.snowflake.com/guide/build-a-native-app-with-spcs/index.html#0

To Reproduce Steps to reproduce the behavior:

  1. Follow the tutorial - https://quickstarts.snowflake.com/guide/build-a-native-app-with-spcs/index.html#0
  2. After the last step - call spcs_app_instance.app_public.app_url();, open the URL in browser
  3. See the error - Access Denied. Insufficient privileges to use the .https://xxxxxx.snowflakecomputing.app/

Expected behavior The URL should open with the application.

Desktop:

OS: [Apple M1]
Browser [firefox]
AryanMadhavVerma commented 4 months ago

Having the same issue The issue at hand:- How to access the container-hosted web app from a native application. What are the access configurations to be made?