Skip to content

Commit e54b1fc

Browse files
committed
Fixed direct connections without well-known document.
1 parent c251601 commit e54b1fc

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ JavaScript client for the openEO API.
44

55
[![Build Status](https://travis-ci.org/Open-EO/openeo-js-client.svg?branch=master)](https://travis-ci.org/Open-EO/openeo-js-client)
66

7-
The version of this client is **0.4.0** and supports **openEO API version 0.4.x**. Legacy versions are available as releases.
7+
The version of this client is **0.4.1** and supports **openEO API version 0.4.x**. Legacy versions are available as releases.
88

99
## Usage
1010

@@ -79,7 +79,7 @@ try {
7979
}
8080
```
8181

82-
More information can be found in the [**JS client documentation**](https://open-eo.github.io/openeo-js-client/0.4.0/).
82+
More information can be found in the [**JS client documentation**](https://open-eo.github.io/openeo-js-client/0.4.1/).
8383

8484
## Roadmap
8585

openeo.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,9 @@ class OpenEO {
5757
}
5858
} catch(error) {
5959
/** @todo We should replace the fallback in a 1.0 or so. */
60-
if (error.response && [403,404,405,501].includes(error.response.status)) {
61-
console.warn("DEPRECATED: Can't read well-known document, connecting directly to the specified URL as fallback mechanism.");
62-
}
63-
else {
64-
throw error;
65-
}
60+
console.warn("DEPRECATED: Can't read well-known document, connecting directly to the specified URL as fallback mechanism.", error);
6661
}
62+
6763

6864
return await OpenEO.connectDirect(url, authType, authOptions);
6965
}
@@ -116,7 +112,7 @@ class OpenEO {
116112
* @returns {string} Version number (according to SemVer).
117113
*/
118114
static clientVersion() {
119-
return "0.4.0";
115+
return "0.4.1";
120116
}
121117

122118
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openeo/js-client",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"author": "openEO Consortium",
55
"contributors": [
66
{

0 commit comments

Comments
 (0)