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

Cannot convert undefined or null to object #170

Open
AskAlice opened this issue Jun 26, 2020 · 0 comments
Open

Cannot convert undefined or null to object #170

AskAlice opened this issue Jun 26, 2020 · 0 comments

Comments

@AskAlice
Copy link

AskAlice commented Jun 26, 2020

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at Object.exports.getSuccessResponse (C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:13:30)
    at C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:185:35
    at Array.forEach (<anonymous>)
    at C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:158:28
    at Array.forEach (<anonymous>)
    at Object.exports.getAllEndPoints (C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:156:31)
    at Object.<anonymous> (C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\index.js:132:39)
    at step (C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\index.js:43:23)
    at Object.next (C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\index.js:24:53)

I seem to get that with this https://aperture.section.io/api/v1/swagger.yaml which i converted to json with swagger-codegen => http://in4.us/swagger.json

I thought it might be related to issue #20, but i changed all the responses to have a 200 and it still seemed to die

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant