apazureck / odatatools

OData Tools for vscode
24 stars 12 forks source link

Error creating proxy #35

Open jstefkova opened 6 years ago

jstefkova commented 6 years ago

Hi,

I tried to generate typescript interfaces from an url, but it failed:

[INFO ] v200commands: Getting Metadata from 'http://api-xp4.obb.tuev-daily.de/OData/$metadata' [ERROR] Creating proxy returned following error: [ERROR] TypeError: Cannot read property 'find' of undefined [INFO ] v200commands: Updating current file. [INFO ] v200commands: Successfully pasted data. Formatting Document. [INFO ] v200commands: Finished

The error seems to be with the Action:

`

`
apazureck commented 6 years ago

Hi, I'll try to have a look at it at the weekend. Maybe your OData Service does use stuff I did not cover yet. We also had some issues when our OData Service grew more complex, I am not sure if I published all our fixes yet, but I'll try to update everything and have a look at your issue.

Regards

apazureck commented 6 years ago

Hi, Sorry, couldn't take care of that at the weekend. I hope to get it in my schedule this week, but it I have to do a lot of stuff at work, so maybe it will take until the next week to get into that stuff, sorry.

If it takes too long feel free to fork and debug. I think it is some scenario I didn't think about and this causes an empty/not created list of some sort.

If you need some help/support then just post an answer to this issue.

thx