Giter Site home page Giter Site logo

Comments (9)

github-actions avatar github-actions commented on June 19, 2024

We need more info to debug your Microsoft Entra ID issue. If you could attach your logs to the issue (ensure no private data is in them), it would help us fix the issue much faster.

  • In the settings menu, find the setting titled Azure: Logging Level and select the Verbose option
  • Restart Azure Data Studio
  • Run the process that produces your error
  • Open command palette (Click View -> Command Palette)
  • Run the command: Developer: Open Logs Folder
  • Follow this path to find the Azure Accounts log file: [default log folder]/window1/exthost/output_logging_[earliest timestamp]/#-Azure Accounts.log
  • Please attach the Azure-Accounts.log file to the issue.

Additionally, please review known issues and their resolutions that could be helpful: Common Azure Authentication Issues

from azuredatastudio.

npasken avatar npasken commented on June 19, 2024

1-Azure Accounts.log

As requested - file is attached.

from azuredatastudio.

cheenamalhotra avatar cheenamalhotra commented on June 19, 2024

it seems the request is going invalid for this case, even though it works in most cases. I will add more logging so we can understand better what is going wrong.

from azuredatastudio.

npasken avatar npasken commented on June 19, 2024

it seems the request is going invalid for this case, even though it works in most cases. I will add more logging so we can understand better what is going wrong.

I'm a rather new user to ADS, but if it is supposed to be similar to VS Code, I don't have any issues logging in to my account in VS Code. Not sure if that's helpful, but figured I'd mention. And I tried using the Auth code grant flow and get the same error.

from azuredatastudio.

calebcartwright avatar calebcartwright commented on June 19, 2024

We've got people running into this as well and it's hindering progress on some key initiatives.

Is there a feature branch anywhere that's got that aforementioned extra logging that we could use to build and run locally to try to get to the source of the error? We've had our AAD admins check on the AAD side and everything looks correct and successful there, but on the Data Studio client side the underlying Type Error that's occurring due to this 👇 call site:

if (isErrorResponseBodyWithError(data)) {

is completely swallowing whatever the underlying issue is because the call arg is clearly not an object the in operator can be used against

from azuredatastudio.

cheenamalhotra avatar cheenamalhotra commented on June 19, 2024

There hasn't been any churn in this area recently, the request made to acquire tenants itself is failing, which is surprising.

Can you enable PII logging using below setting, restart ADS and rerun the failing scenario. You can find logs in "Azure Accounts" Output pane or in the log file as per above comment, something like under.

image

[Verbose]: Fetching tenants with uri: https://management.azure.com/tenants?api-version=2019-11-01 - []
[Pii]: GET request  response=<<<this is where you will find detailed error information>>>

Just paste the error from the response above, you need not share the complete log file. Please mask any sensitive info and paste detailed error as available.

We will address the 'in' operator bug in future iterations.

from azuredatastudio.

calebcartwright avatar calebcartwright commented on June 19, 2024

We've got an open Service Request with Microsoft. Would it be better for us to share masked content here in public or the full log in private on the request?

from azuredatastudio.

calebcartwright avatar calebcartwright commented on June 19, 2024

The details we have from the PII log are below. They do not strike me as particularly illuminating but hopefully it offers something meaningful to you 🤷

The response is an object with a set of single digit stringified keys, each of which has a single character string as the value.

There's no data key

[Pii]: GET request response={"0":"B","1":"a","2":"d","3":" ", ...elided... } - ["https://management.azure.com/tenants?api-version=2019-11-01"]
[Error]: Error fetching tenants :TypeError: Cannot use 'in' operator to search for 'error' in Bad request - []
[Error]: Login failed: TypeError: Cannot use 'in' operator to search for 'error' in Bad request - []

from azuredatastudio.

JF-SR avatar JF-SR commented on June 19, 2024

Hi. I am experiencing exactly the same problem. Have tried adding/removing proxy but makes no difference. Azure authentication reports success in the browser but then always fails here:
[Verbose]: Fetching tenants with uri: https://management.azure.com/tenants?api-version=2019-11-01 - []
[Error]: Error fetching tenants :TypeError: Cannot use 'in' operator to search for 'error' in

from azuredatastudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.