Skip to content

[BUG] JS ConditionType.constructFromObject is not a function #661

@jabuj-amalytix

Description

@jabuj-amalytix

Environment
JS

Describe the bug
Using getItemOffers method from Pricing_v0SpApi causes the following error

Uncaught TypeError: ConditionType.constructFromObject is not a function
    at GetOffersResult.constructFromObject (file:///Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/src/pricing_v0/model/GetOffersResult.js:71:85)
    at GetOffersResponse.constructFromObject (file:///Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/src/pricing_v0/model/GetOffersResponse.js:54:75)
    at ApiClient.convertToType (file:///Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/src/pricing_v0/ApiClient.js:771:23)
    at ApiClient.deserialize (file:///Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/src/pricing_v0/ApiClient.js:595:22)
    at file:///Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/src/pricing_v0/ApiClient.js:718:31
    at Request.callback (/Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/node_modules/superagent/lib/node/index.js:837:12)
    at /Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/node_modules/superagent/lib/node/index.js:1078:18
    at IncomingMessage.<anonymous> (/Users/alexey.chashin/Projects/tool.amalytix.com/node_modules/@amazon-sp-api-release/amazon-sp-api-sdk-js/node_modules/superagent/lib/node/parsers/json.js:21:7)
    at Stream.emit (node:events:508:28)
    at Stream.emit (node:domain:552:15)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions