Comments (3)
The /auth/time
request is being made to https://api.us.ovhcloud.com/1.0auth/time
which is what causes the exception.
The following code in CallAsync removes the leading slash creating an incorrect uri.
if (path.StartsWith("/"))
{
path = path.Substring(1);
}
from csharp-ovh.
Hi,
Thanks for your investigation, indeed there's an issue with the US address. However, your change would potentially break every other regions.
After looking at the private constructor of Client.cs
, the US address is missing a trailing slash. Could you try adding it instead of removing the .Substring()
?
from csharp-ovh.
Hi @Namaneo, I created a new pull request adding the trailing slash.
from csharp-ovh.
Related Issues (20)
- Add an IEnumerable API to ease subsequent calls HOT 1
- Object Storage API HOT 1
- Github documentation is obsolete. HOT 9
- Improve JSON parsing exception by sending back problematic string HOT 1
- WebClient not supporting concurrent I/O operations HOT 6
- Remove sync methods HOT 1
- Scope timeout to Ovh.Client instance
- Allow to give a timeout per call
- Replace all <T,Y> methods by <T> HOT 1
- Create releases directly on travis HOT 1
- No responses to any api calls HOT 9
- Dot Net Core 3.1, Can not find Ovh namespace. HOT 3
- No definition for "RequestConsumerKey" HOT 3
- Error logging? HOT 2
- An exception occured while trying to issue the HTTP call ?? HOT 5
- How do you change the provider in code without declaring a new client? HOT 2
- Unable to handle HTTP 204 correctly
- Add US endpoint
- Support for .NET Standard HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharp-ovh.