Giter VIP home page Giter VIP logo

Comments (7)

clintkitson avatar clintkitson commented on June 20, 2024

Hello Marc,

I assume you are referring to the SIO 1.3 API? Today it does support this
version. The project is focused however on incremental additions based on
need versus exposing 100% of the API. If there is something specific
missing or I didn't interpret the question correctly let me know.

On Tuesday, December 29, 2015, Marc Zimmermann [email protected]
wrote:

Hi,

are there any plans in the near future for a version which is compatible
with the rexray API Version 1.3 ?

Greets
Marc


Reply to this email directly or view it on GitHub
#6.

from goscaleio.

koboltmarky avatar koboltmarky commented on June 20, 2024

Hi Cliton,

i tried to use Rexray 0.3 with the "EMC-ScaleIO-gateway.x86_64 2.0-764.0".
This produce the following error on the scaleio gateway:

"2015-12-29 13:58:54,730 [http-nio-443-exec-8] WARN c.e.s.s.w.c.SpecialImplController - unexpected error: 406 Requested REST API version is not supported. Supported version is 1.3"

With my really basic knowledge of go i thought this is because rexray use the goscaleio library, which not supported this version yet.

Maybe I'm wrong then sorry for the confusion.

Marc

from goscaleio.

clintkitson avatar clintkitson commented on June 20, 2024

Interesting. I will take a look into this shortly.

On Tuesday, December 29, 2015, Marc Zimmermann [email protected]
wrote:

Hi Cliton,

i tried to use Rexray 0.3 with the "EMC-ScaleIO-gateway.x86_64 2.0-764.0".
This produce the following error on the scaleio gateway:

"2015-12-29 13:58:54,730 [http-nio-443-exec-8] WARN
c.e.s.s.w.c.SpecialImplController - unexpected error: 406 Requested REST
API version is not supported. Supported version is 1.3"

With my really basic knowledge of go i thought this is because rexray use
the goscaleio library, which not supported this version yet.

Maybe I'm wrong then sorry for the confusion.

Marc


Reply to this email directly or view it on GitHub
#6 (comment).

from goscaleio.

clintkitson avatar clintkitson commented on June 20, 2024

Can you refer to the API documentation? Currently I believe the docs specified to solely issue the following header. If this has changed, then it would be a reason that the 2.0 API gateway complains. Replacing this statement in any occurence could then fix the problem if the API calls are backwards compatible.

req.Header.Add("Accept", "application/json;version=1.0")

from goscaleio.

koboltmarky avatar koboltmarky commented on June 20, 2024

Unfortunately i don't have a valid documentation for the rest api of the 2.0 gateway.
But it seems that the version string have changed:

http --verify no --auth admin:XXXXXXXXX GET https://xxxxxxxxxx/api/login Accept:"application/json;version=1.0"
HTTP/1.1 500 Internal Server Error
Cache-Control: no-cache
Cache-Control: no-store
Connection: close
Content-Encoding: gzip
Content-Type: application/json; version=1.0
Date: Tue, 29 Dec 2015 20:02:28 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding
{
    "errorCode": 0, 
    "httpStatusCode": 500, 
    "message": "org.springframework.web.client.HttpClientErrorException: 406 Requested REST API version is not supported. Supported version is 1.3"
}

With 1.3:

http --verify no --auth admin:xxxxxxxxxx GET https://xxxxxxxxxxxx/api/login Accept:"application/json;version=1.3"
HTTP/1.1 200 OK
Cache-Control: no-cache
Cache-Control: no-store
Content-Encoding: gzip
Content-Type: application/json; version=1.3
Date: Tue, 29 Dec 2015 20:05:05 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding
"YWRtaW46MTQ1MTQ0ODMwNTAwNTo5ZWQ3YWZmNGExMmU2NTU3MDM0YjYzODNlNWRhMTJKITZ"

No version header also works.

from goscaleio.

clintkitson avatar clintkitson commented on June 20, 2024

Good info for now. Without seeing the docs myself it's tough to say
whether the rest of the functionality will work if they are now enforcing
API versions. Typically is done because there are breaking changes that
are present in the structure.

On Tuesday, December 29, 2015, Marc Zimmermann [email protected]
wrote:

Unfortunately i don't have a valid documentation for the rest api of the
2.0 gateway.
But it seems that the version string have changed:

http --verify no --auth admin:XXXXXXXXX GET https://xxxxxxxxxx/api/login Accept:"application/json;version=1.0"
HTTP/1.1 500 Internal Server Error
Cache-Control: no-cache
Cache-Control: no-store
Connection: close
Content-Encoding: gzip
Content-Type: application/json; version=1.0
Date: Tue, 29 Dec 2015 20:02:28 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding

{
"errorCode": 0,
"httpStatusCode": 500,
"message": "org.springframework.web.client.HttpClientErrorException: 406 Requested REST API version is not supported. Supported version is 1.3"
}

With 1.3:

http --verify no --auth admin:xxxxxxxxxx GET https://xxxxxxxxxxxx/api/login Accept:"application/json;version=1.3"
HTTP/1.1 200 OK
Cache-Control: no-cache
Cache-Control: no-store
Content-Encoding: gzip
Content-Type: application/json; version=1.3
Date: Tue, 29 Dec 2015 20:05:05 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding

"YWRtaW46MTQ1MTQ0ODMwNTAwNTo5ZWQ3YWZmNGExMmU2NTU3MDM0YjYzODNlNWRhMTJKITZ"

No version header also works.


Reply to this email directly or view it on GitHub
#6 (comment).

from goscaleio.

clintkitson avatar clintkitson commented on June 20, 2024

1.3 and 2.0 are supported as of #10

from goscaleio.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.