kontent-ai / model-generator-js

MIT License
13 stars 9 forks source link

Model Generation fails with `SyntaxError: Invalid character.` #59

Closed Nickm615 closed 5 months ago

Nickm615 commented 5 months ago

Brief bug description

Model Generation fails with SyntaxError: Invalid character. No more specific error message than that, but I've attached the full stack trace generator_stack_trace.txt

Repro steps

Run kontent-generate --environmentId=xxx --apiKey=xxx (I can provide these values for testing via direct message)

Expected behavior

The models are successfully generated or if there is an issue a descriptive error message is displayed in the console.

Test environment

Node v18.16.0 model-generator v 6.5.1

Additional context

Intercom Conversation We've checked the type that the process fails on for invalid characters in its name or elements but haven't found any. We also checked the MAPI validation endpoint but all of the returned issues are with variants rather than types.

Screenshots

image

Enngage commented 5 months ago

Fixed and released in 7.0.2