question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Text Analytics] "Invalid URL '$(js-textanalytics-test-service-endpoint)/text/analytics/v3.2-preview.2/analyze': No schema supplied" in Public, USGOV and China clouds

See original GitHub issue

We are running live Tests against other clouds like US Gov and Azure China Cloud. The goal is to check whether new azure sdk package work with other clouds or not.

Error Description: When running the test test_analyze.py::TestAnalyze::test_disable_service_logs in weekly pipeline, it runs failed and the error message is shown as following. In addition, I ran this test in the local and nightly pipelines, and the result of both is pass. For more details on this issue, please check here: image

Expected Behavior: This service request is a valid url. Maybe we need to confirm whether the value of the environment variable js-textanalytics-test-service-endpoint (textanalytics/tests.yml) in weekly pipeline is correct and exists.

@benbp, @jameszliao-msft, @lmazuel, @meeraharidasa , @mayurid, @abhahn for notification.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
benbpcommented, Jan 7, 2022

@kristapratico @v-xuto I have a PR up at https://github.com/Azure/azure-sdk-for-python/pull/22376 which updates the yaml to support sovereign cloud testing and removes the dependency on the current variable group. Once that’s merged in I can remove the old variable group reference in the pipeline as well.

@kristapratico if you can double check the contents of the config where I added the env variables and add anyone else relevant to the access policies + as vault owners that would be great. (Docs on the schema and how it gets set up are here).

Vault: https://ms.portal.azure.com/#@microsoft.onmicrosoft.com/resource/subscriptions/2cd617ea-1866-46b1-90e3-fffb087ebf9b/resourceGroups/LiveTestSecrets/providers/Microsoft.KeyVault/vaults/TestSecrets-textanalytic/overview

Or:

az keyvault secret show --vault-name testsecrets-textanalytic -n sub-config-text-analytics-azure-cloud-test-resources --query 'value'

P.S. Sadly I had to name the keyvault TestSecrets-TextAnalytic because the 24 character vault name limit made it to long for “Analytics” plural…

1reaction
kristapraticocommented, Jan 11, 2022

Hi @v-xuto, you can skip samples for UsGov and China. Just move the

MatrixReplace:
  - TestSamples=.*/true

under the PublicCloud config. For example: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/translation/tests.yml#L12-L13

This will skip samples for those clouds and we won’t have to add any code to the sample files themselves.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No schema supplied and other errors with using requests.get()
No schema means you haven't supplied the http:// or https:// supply these and it will do the trick. Edit: Look at this URL...
Read more >
MissingSchema: Invalid URL ' ': No schema supplied
Solved: Using Python 3.6.9, I'm making requests with Requests by calling URLs from a text file. I put five of them here, for...
Read more >
Invalid URL No schema supplied - Nike-Inc/gimme-aws-creds
I get the below error while trying to run the script: Traceback (most recent call last): File "/usr/local/bin/gimme-aws-creds", line 4, ...
Read more >
How do I Fix a 'Missing Schema' Error in Ansible Tower When ...
No translations currently exist. Issue. An inventory sync of a CloudForms inventory fails in Ansible Tower with the following error: Raw.
Read more >
Invalid URL 'None': No schema supplied. Perhaps you meant ...
MissingSchema: Invalid URL 'None': No schema supplied. ... I still have the same error and have not found any solution yet!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found