Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Creation of SDK for SAP S/4HANA Cloud - Customer Material (A2X) API fails #4

Open
gregorwolf opened this issue Aug 23, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@gregorwolf
Copy link

gregorwolf commented Aug 23, 2023

Describe the bug

I've tried to create the TypeScript SDK for the SAP S/4HANA Cloud - Customer Material (A2X) API. But it fails with this error in the POST request to https://convert.odata-openapi.net/api/CodeGen:

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module 'C:\home\c:\site\wwwroot\node_modules\autorest\entrypoints\app.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

To Reproduce

Steps to reproduce the behavior:

  1. Go to SAP S/4HANA Cloud - Customer Material (A2X) and download the EDMX from the API specification
  2. Open https://convert.odata-openapi.net/# and switch to SDK Generator
  3. Paste the EDMX content into 'Manual Input of OData Definition'
  4. Click Generate SDK and choose Typescript
  5. See error

Expected behavior

No error should occur.

Desktop (please complete the following information):

  • OS: MacOS 13.4.1
  • Browser Chrome
  • Version Version 116.0.5845.96 (Official Build) (arm64)

OData Payload for diagnosis

As the API Metadata can only be downloaded after authentication at api.sap.com I can't provide it directly here.

@MartinPankraz
Copy link
Collaborator

Thanks for pointing out. Would you consider the SAP Cloud SDK for Node instead?

@MartinPankraz MartinPankraz added the bug Something isn't working label Jul 2, 2024
@gregorwolf
Copy link
Author

For the moment that is of course the best alternative if I need support for TypeScript or Java.

@MartinPankraz
Copy link
Collaborator

Ok, but you would favor the converter still?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants