cancel
Showing results for 
Search instead for 
Did you mean: 

[CAP] Remote service from Open API

01-24-2023 3:26 PM
wozjac Active Participant
1074 views 3 comments
0 Likes
SAP Managed Tags
Subscribe

Hello,

I have two remote services imported from Open API specs, one from SAP API Business Hub, one from a custom project, but also Open API, ver. 3.0.1.

The first is working.

The second is imported, CSN looks ok to me, but during initialization there is an error:

[INTERNAL ERROR] TypeError: this.operations is not iterable

coming from @sap\cds-dk\node_modules\@sap\cds\libx\_runtime\remote\Service.js:206:29).

Any hints what might be the issue?

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

wozjac
Active Participant
0 Likes

I somehow managed this, but sadly can't point where is the problem exactly. This is because the Open API spec I have is quite big and what I did is to start extracting what I need. With this limited set the service is correct - calls are in "operations" variable.

gregorw
SAP Mentor
SAP Mentor
0 Likes

Could it be that the original OpenAPI spec had self referencing types?

wozjac
Active Participant
0 Likes

I don't know yet. But if during my work I will reach this parts of the spec which are triggering this issue, I will share it here.