-
Notifications
You must be signed in to change notification settings - Fork 39
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
Kusto query failed in Teams web service with error "Invalid character in header content ["x-ms-app"]" #299
Comments
I ran into the same issue when using azure-kusto-data V5. It blocks me to get a daily report generated by kusto data and hosted on function app. Wondering if there is a workaround and the ETA for the fix. |
We have just released v6.0.1 which should have a fix for this, does it still happen to you in this version? |
Hi AsaMah,
I updated the package to V6.0.1, unfortunately, I still get the same error when testing it in my function app.
[A screenshot of a computer Description automatically generated]
I can confirm I'm using the latest package in my code and uploaded it successfully to my function app.
The following is the package.json file in azure-kusto-data in node_moudles folder that I downloaded from my function app, I it shows the package version V6 as expected.
[A screen shot of a computer code Description automatically generated]
From: AsafMah ***@***.***>
Sent: Monday, April 8, 2024 9:49 PM
To: Azure/azure-kusto-node ***@***.***>
Cc: Lufeng Ren ***@***.***>; Comment ***@***.***>
Subject: Re: [Azure/azure-kusto-node] Kusto query failed in Teams web service with error "Invalid character in header content ["x-ms-app"]" (Issue #299)
We have just released v6.0.1 which should have a fix for this, does it still happen to you in this version?
-
Reply to this email directly, view it on GitHub<#299 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXCQPKWC2ISKZHZPV53LYBDY4NXNFAVCNFSM6AAAAABFIIK3IWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGE2DEMZVG4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
edit: tl;dr: A workaround for the issue is reverting to an older node version. I am running into a similar issue with the x-ms-app header, but I have some useful additional information.
I will try tomorrow with the 6.0.1 version and see if that helps. edit: here is the relevant part of our code: kcs = KustoConnectionStringBuilder.withSystemManagedIdentity(clusterConnectionString)
const kustoClient = new KustoClient(kcs)
const clientRequestProps = new ClientRequestProperties()
const oneMinute = 1000 * 60
clientRequestProps.setTimeout(oneMinute)
clientRequestProps.clientRequestId = `${config.applicationName};${getGuid()}`
clientRequestProps.setOption('Application', config.applicationName)
const results = await kustoClient.execute(database, query, clientRequestProps) edit2: The issue is still present in version 6.0.1 |
We have the same problem since three days, the problem seems to be that the default value for On our azure function app the header looks like this: |
I'm re-opening, we have just released 6.0.2 that should fix this issue. Please let us know if you're still having it after upgrading. |
@AsafMah just upgraded, errors no longer occur. |
@AsafMah, I verified it with package 6.0.2 and this error no longer occur. 🎉🎉🎉 |
Describe the bug
Kuso query failed in Teams web service with error message ""Invalid character in header content ["x-ms-app"]".
I'm not sure if this is a Teams Framework or Kusto bug.
The same code works in local testing but failed when running in Teams web service in Azure.
microsoft/teams-ai#1443
To Reproduce
Add a Kusto query function to Teams bot, and I explicitly set "x-ms-app" header with code as below, but not working.
Can anyone help me understand if this is the right way to setup "x-ms-app" header? or in which situation kustoClient.execute throw this exception "Invalid character in header content ["x-ms-app"]"? how to fix it? Appreciated!
Expected behavior
no exception
Screenshots
Got this error in Azure log stream:
Setup:
Browser Setup:
Desktop:
Additional context
...
The text was updated successfully, but these errors were encountered: