-
Notifications
You must be signed in to change notification settings - Fork 864
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
Get-S3Bucket : Invalid URI: The format of the URI could not be determined. #3206
Comments
Could this be related to #3198? We added support for |
Hi Daniel, Yes, we have checked this issue yesterday, but even with 4.1.525, we are getting this "Invalid URI" error and from that message it's hard to decide, where the issue is coming from exactly. In the "Current Behavior" section I have specified the versions being tried and the respective error messages. |
I'm not sure if you can share it, but what does your
|
I can't share the exact details, but I am using an example. We have tried unsetting the $proxy variable as well, but didn't change the outcome. |
@KristofKuli What is the |
$noProxyComma |
Hi, |
Please enable logging to see if it helps in identifying the issue. PowerShell logging can be enabled with below commands.
|
Hi @afroz429, We have enabled the logging, but it doesn't provide any extra information. |
Hi All, Is there anything else, which can be tried? Do you see anything in the source code of AWSPowershell, which could cause this issue? |
Apologies, but we have not been able to reproduce the error you described yet; but from the last error message it looks like the custom endpoint URL is not valid. Was that URL changed recently? If you run the following command (replacing
|
Hi, I have checked the URL with the command you have provided, but it doesn't display any error, it list the details of the URL properly. This issue was reported by one of our customer, who came across with this problem. For testing purpose, I have created an S3 Bucket and currently testing the connection from the Azure Devops pipeline. I am receiving Service Unavailable, when it tries to connect, hence I assume the command in not recognizing the no_proxy env var. I am pasting the task configuration below:
The error I receive is the following:
|
Update:
In pipeline: |
Hi, |
Nobody in our team was able to reproduce the problem (we also confirmed the latest version of PowerShell recognizes all of We created an internal backlog item to (optionally) turn off checking for those environment variables but it hasn’t been prioritized yet (FYI: For the error you described this is the only report we received, so we believe it’s unfortunately an issue with your setup - especially the internal S3 instance part). |
Hi folks, we're only able to assist you in troubleshooting the use of the .NET SDK with S3 proper, not an internal service that is emulating S3. Since we haven't been able to reproduce this issue, I will be closing it. If I'm not correct and you are talking to the actual S3 service, please let me know and I'll reopen this. |
Comments on closed issues are hard for our team to see. |
Describe the bug
We are using Azure Devops pipeline to issue the above mentioned command, which currently throws the following error message:
Get-S3Bucket : Invalid URI: The format of the URI could not be determined.
We are using self-hosted agents, which are using Blueprint images from Microsoft. The command worked fine with AWSPowershell version 4.1.368, then the version has been updated in the Blueprint image, first to 4.1.487 and then to 4.1.518 and since we receive the mentioned error. The command is called during a custom Powershell script execution and it is connecting to an internal S3 instance. We are behind proxy, but in the script the target endpoint is added to the no_proxy environment variable, so the traffic should not go through the proxy.
Could you please help us investigate this problem?
Expected Behavior
The Get-S3Bucket should list the buckets.
Current Behavior
Currently we receive the following errors for different versions:
4.1.525 -- Invalid URI
4.1.518 -- Invalid URI
4.1.487 -- Bad Gateway
4.1.368 -- Bad Gateway
Reproduction Steps
Since the endpoint is an internal site, therefore I can't provide reproduction steps.
Possible Solution
No response
Additional Information/Context
No response
AWS .NET SDK and/or Package version used
AWSPowershell
4.1.525
4.1.518
4.1.487
4.1.368
Targeted .NET Platform
.NET Framework 4.8.1
Operating System and version
Windows Server 2022
The text was updated successfully, but these errors were encountered: