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

Exception 400 from http://localhost:50342/oauth2/token #13302

Closed
pourpak opened this issue May 2, 2020 · 4 comments
Closed

Exception 400 from http://localhost:50342/oauth2/token #13302

pourpak opened this issue May 2, 2020 · 4 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.

Comments

@pourpak
Copy link

pourpak commented May 2, 2020

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az webapp list

Errors:

400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 631, in execute
    raise ex
cli/core/commands/__init__.py, ln 695, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 688, in _run_job
    six.reraise(*sys.exc_info())
...
python3.6/site-packages/msrestazure/azure_active_directory.py, ln 598, in set_token
    self.scheme, _, self.token = get_msi_token(self.resource, self.port, self.msi_conf)
python3.6/site-packages/msrestazure/azure_active_directory.py, ln 486, in get_msi_token
    result.raise_for_status()
python3.6/site-packages/requests/models.py, ln 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://localhost:50342/oauth2/token

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az webapp list

Expected Behavior

Environment Summary

Linux-4.15.0-1077-azure-x86_64-with-debian-stretch-sid
Python 3.6.5
Installer: DEB

azure-cli 2.4.0 *

Additional Context

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 2, 2020
@yonzhan yonzhan added the Web Apps az webapp label May 2, 2020
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label May 2, 2020
@yonzhan yonzhan added the Service Attention This issue is responsible by Azure service team. label May 2, 2020
@ghost
Copy link

ghost commented May 2, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

@yonzhan
Copy link
Collaborator

yonzhan commented May 2, 2020

webapp

@yungezz yungezz removed the Web Apps az webapp label May 4, 2020
@yungezz
Copy link
Member

yungezz commented May 4, 2020

hi @pourpak are you met the issue on Cloudshell? If yes, this is a known issue of Cloudshell, simliar to #13233. To solve it, please use Azure CLI on a local machine or run az login in Cloud Shell and retry the command.. Let us know if any other need.

@yungezz yungezz changed the title Azure bug webapp list met 400 from http://localhost:50342/oauth2/token May 4, 2020
@panchagnula panchagnula changed the title webapp list met 400 from http://localhost:50342/oauth2/token Exception 400 from http://localhost:50342/oauth2/token May 28, 2020
@jiasli
Copy link
Member

jiasli commented Apr 19, 2021

This issue is tracked at #11749. If you see it happening again, please kindly let us know.

@jiasli jiasli closed this as completed Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants