Coder Social home page Coder Social logo

kalturageneratedapiclientstypescript's People

Contributors

diamond-darrell avatar esakal avatar jessp01 avatar kalturacommunity avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kalturageneratedapiclientstypescript's Issues

Suggestion: Reduce bandle size instraction

Hello, is it possible to describe the way to reduce bandle size for situations when no babel in the project?

I am using:

  • version of kaltura-typescript-client - 7.0.2
  • version of angular 12.2

XMLHttpRequest is not defined

Subject of the issue

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.

Your environment

  • kaltura-typescript-version: 16.5
  • nest-js project environment
  • Package manager: npm

Steps to reproduce

Set up the library as described in https://developer.kaltura.com/workflows/Generate_API_Sessions/Authentication;step=1

Expected behaviour

I should receive the token

Actual behaviour

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

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.