oracle/oci-typescript-sdk

Error get ReadableStream from ObjectStorageClient on nodejs 18.7.0

Closed this issue · 2 comments

Hi on nodejs 18.7.0 bug from get ReadableStream from ObjectStorageClient.

I use the getObject function and get this message:

(node:12872) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)

And I got this response
ReadableStream { locked: false, state: 'readable', supportsBYOB: false }

But if i use nodejs 16.16.+ version, i receive normal stream

PassThrough { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: [Object], tail: [Object], length: 1 }, length: 1956, pipes: [], flowing: null, ended: false, endEmitted: false, reading: true, constructed: true, sync: false, needReadable: true, emittedReadable: false, readableListening: false, resumeScheduled: false, errorEmitted: false, emitClose: true, autoDestroy: true, destroyed: false, errored: null, closed: false,

Hi @DeepzUa ,

Our TypeScript SDK does not support NodeJS 18.x. Please see here – https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/typescriptsdk.htm#Versions_Supported:~:text=The%20SDK%20for%20TypeScript%20and%20JavaScript%20currently%20supports%20NodeJS%20version%2014.x%20%26%2016.x%20and%20TypeScript%20version%204.1.x.

Versions Supported
The SDK for TypeScript and JavaScript currently supports NodeJS version 14.x & 16.x and TypeScript version 4.1.x.

Looks like it works fine in NodeJS 16.x version, which we support. So we would recommend using the supported version.

Thanks.

Closing this ticket as NodeJS 16.x version would help solve this issue.