geonix 1.8.5 → 1.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Request.js +3 -3
package/package.json
CHANGED
package/src/Request.js
CHANGED
|
@@ -78,8 +78,8 @@ export async function Request(service, method, args = [], context = [], options)
|
|
|
78
78
|
throw Error(`Request: requested instance of ${service} not found`)
|
|
79
79
|
|
|
80
80
|
let response
|
|
81
|
+
const originator = getOriginator()
|
|
81
82
|
try {
|
|
82
|
-
const originator = getOriginator()
|
|
83
83
|
response = await connection.request(
|
|
84
84
|
`gx2.service.${hash(identifier)}`,
|
|
85
85
|
{
|
|
@@ -90,7 +90,7 @@ export async function Request(service, method, args = [], context = [], options)
|
|
|
90
90
|
},
|
|
91
91
|
options)
|
|
92
92
|
} catch (e) {
|
|
93
|
-
console.error('Request
|
|
93
|
+
console.error('GxError: Request', { originator, service, method, args, context, options })
|
|
94
94
|
throw e
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -99,7 +99,7 @@ export async function Request(service, method, args = [], context = [], options)
|
|
|
99
99
|
response = JSON.parse(await streamToString(response))
|
|
100
100
|
|
|
101
101
|
if (!response)
|
|
102
|
-
throw Error(`Request: invalid
|
|
102
|
+
throw Error(`Request: invalid response`)
|
|
103
103
|
|
|
104
104
|
// got error?
|
|
105
105
|
if (response.e)
|