Skip to content

OVH - 404 Not Found The resource could not be found #291

@tuyenlaptrinh

Description

@tuyenlaptrinh

Hello Everyone. I am new in Openstack and I am using OVH Object Storage. I got this error when I try connect to OVH

Fatal error: Uncaught GuzzleHttp\Exception\ClientException: 
Client error: `POST https://auth.cloud.ovh.net/auth/tokens` resulted in a `404 Not Found` response: {"error": {"message": "The resource could not be found.", "code": 404, "title": "Not Found"}} in D:\Xampp\htdocs\ovh\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php:113 Stack trace: #0 D:\Xampp\htdocs\ovh\vendor\guzzlehttp\guzzle\src\Middleware.php(66): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response)) #1 D:\Xampp\htdocs\ovh\vendor\guzzlehttp\promises\src\Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Response)) #2 D:\Xampp\htdocs\ovh\vendor\guzzlehttp\promises\src\Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array) #3 D:\Xampp\htdocs\ovh\vendor\guzzlehttp\promises\src\TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}() #4 D:\Xampp\htdocs\ovh\vendor\guzzlehttp\promises\src\Promi in D:\Xampp\htdocs\ovh\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 113

I tried another auth URL like
https://auth.cloud.ovh.net/v2.0/ or https://auth.cloud.ovh.net/v3. I got the error too

This is my code

$openstack = new OpenStack\OpenStack([
    'authUrl' => 'https://auth.cloud.ovh.net/',
    'region'  => 'SGP1',
    'user'    => [
        'id'       => 'xxxxxxxx',
        'password' => 'xxxxxxxx'
    ],
    'scope'   => ['project' => ['id' => 'xxxxxxxxx']]
]);
$account = $openstack->objectStoreV1()
                     ->getAccount();

Please help me solve this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions