kaltura / kalturageneratedapiclientstypescript Goto Github PK
View Code? Open in Web Editor NEWTypeScript auto generated client lib
License: GNU Affero General Public License v3.0
TypeScript auto generated client lib
License: GNU Affero General Public License v3.0
Hello, is it possible to describe the way to reduce bandle size for situations when no babel in the project?
I am using:
When calling this.client.request(new SessionStartAction(authData)) I receive the error "XMLHttpRequest is not defined"
I checked the configuration with the start Kultura Session guide from the workflow section and the connection itself should work.
Set up the library as described in https://developer.kaltura.com/workflows/Generate_API_Sessions/Authentication;step=1
I should receive the token
I get following error:
ReferenceError: XMLHttpRequest is not defined
at C:\Career Partner\Projects\idss-discovery\node_modules\kaltura-typescript-client\adapters\adapters\utils.ts:102:15
at new CancelableAction (C:\Career Partner\Projects\idss-discovery\node_modules\kaltura-typescript-client\cancelable-action.ts:23:26)
at Object.createCancelableAction (C:\Career Partner\Projects\idss-discovery\node_modules\kaltura-typescript-client\adapters\adapters\utils.ts:101:17)
at KalturaRequestAdapter.transmit (C:\Career Partner\Projects\idss-discovery\node_modules\kaltura-typescript-client\adapters\adapters\kaltura-request-adapter.ts:22:21)
at KalturaClient.request (C:\Career Partner\Projects\idss-discovery\node_modules\kaltura-typescript-client\kaltura-client-service.ts:96:48)
at new VideoSearchService (C:\Career Partner\Projects\idss-discovery\src\domain\modules\video-search\video-search.service.ts:32:17)
at Injector.instantiateClass (C:\Career Partner\Projects\idss-discovery\node_modules@nestjs\core\injector\injector.js:290:19)
at callback (C:\Career Partner\Projects\idss-discovery\node_modules@nestjs\core\injector\injector.js:77:41)
at Injector.resolveConstructorParams (C:\Career Partner\Projects\idss-discovery\node_modules@nestjs\core\injector\injector.js:118:24)
at Injector.loadInstance (C:\Career Partner\Projects\idss-discovery\node_modules@nestjs\core\injector\injector.js:81:9)
I tried adding XMLHttpRequest manually using npm install to the project and added it as dependency in util.js in my node_modules.
The error disappeard but when starting the connection I get another error: KalturaclientException that contains the correct response token. I guess this behavior comes from the manually installed XMLHttpRequest package.
Do you have any idea how to fix my problem?
Thanks in advance,
best regards,
Tony
follow a discussion with @esakal we have encounter this issue.
maybe a timeout support should be added.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.