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

Unable to execute dev tunnel operation 'create'. Tunnel service returned status code: 403 Forbidden #11275

Closed
ashlytom opened this issue Apr 3, 2024 · 6 comments
Assignees
Labels
investigating needs attention This issue needs the attention of a contributor. TA:Infra Team Area: Infra

Comments

@ashlytom
Copy link

ashlytom commented Apr 3, 2024

Describe the bug
I am unable to run the debug operation in Teams toolkit. I have create a testing account for running debug code. The account has custom app upload capability. But im getting this error constantly. It has only started recently, I had tried the same a month back and it was working fine.

Summary:

(×) Error: Unable to execute dev tunnel operation 'create'. Tunnel service returned status code: 403 Forbidden

Visit https://aka.ms/teamsfx-local-tunnel-task to learn more about 'Start local tunnel' task.

[2024-04-03T06:38:17.984Z] [Error] - code:Ext.DevTunnelOperationError, message: Unable to execute dev tunnel operation 'create'. Tunnel service returned status code: 403 Forbidden
Help link: https://aka.ms/teamsfx-local-tunnel-task

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Local Debug(Chrome)'
  2. Once the prerequiste tests are run, the dev tunnel service starts
  3. Error happens

Expected behavior
Tunnel should be automatically relates and Dev Teams should open up browser

Screenshots
image

VS Code Extension Information (please complete the following information):

  • OS: Windows 10 pro OS Build: 19045.4046
  • Version : February 2024 (version 1.87)

CLI Information (please complete the following information):

  • OS: not installed
  • Version : not installed

Additional context
Add any other context about the problem here.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Apr 3, 2024
@adashen adashen added investigating TA:Infra Team Area: Infra labels Apr 8, 2024
@XiaofuHuang
Copy link
Contributor

@ashlytom
Could you try to initiate the dev tunnel CLI? Did this issue occur when you used the dev tunnel CLI directly?

  • Install dev tunnel cli.
  • Login with your M365 Account using the command devtunnel user login.
  • Start your local tunnel service by running the command devtunnel host -p 3978 --protocol http --allow-anonymous.
  • In the env/.env.local file, fill in the values for BOT_DOMAIN and BOT_ENDPOINT with your dev tunnel URL.
    BOT_DOMAIN=sample-id-3978.devtunnels.ms
    BOT_ENDPOINT=https://sample-id-3978.devtunnels.ms/
    
  • Remove "Start local tunnel" task in tasks.json
  • Press F5 to start again

@adashen adashen added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Apr 10, 2024
@ashlytom
Copy link
Author

ashlytom commented Apr 10, 2024

@XiaofuHuang
Yes, the issue is happenning even after using the dev tunnel. Still getting the same error message.
image

@microsoft-github-policy-service microsoft-github-policy-service bot added needs attention This issue needs the attention of a contributor. and removed needs more info Need user to provide more info labels Apr 10, 2024
@XiaofuHuang
Copy link
Contributor

XiaofuHuang commented Apr 11, 2024

@ashlytom Are you using any proxy server? If so, here is a possible solution.

@ashlytom
Copy link
Author

No @XiaofuHuang.
There is no proxy server involved here. I think there is something wrong with the ngrok binary package. Is there a way to test it?

@XiaofuHuang
Copy link
Contributor

@ashlytom We've used the dev tunnel instead of ngrok in Teams Toolkit V5. Given that the dev tunnel CLI isn't functioning in your environment, it's likely the root cause lies within the dev tunnel.
This issue has been copied over to dev tunnel repo here: microsoft/dev-tunnels#436

@XiaofuHuang XiaofuHuang removed the needs attention This issue needs the attention of a contributor. label Apr 15, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Apr 22, 2024
@ashlytom
Copy link
Author

@XiaofuHuang Thank you. It was an issue caused due to the firewall on the system i was working with. Once the API within devtunnel host was whitelisted, it started working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating needs attention This issue needs the attention of a contributor. TA:Infra Team Area: Infra
Projects
None yet
Development

No branches or pull requests

3 participants