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

Exception 500 when invoking generators on Vorto dev system #2168

Closed
aedelmann opened this issue Dec 11, 2019 · 7 comments
Closed

Exception 500 when invoking generators on Vorto dev system #2168

aedelmann opened this issue Dec 11, 2019 · 7 comments
Labels
Milestone

Comments

@aedelmann
Copy link
Contributor

Steps taken:

  • choose any Information model and go to its details page
  • Generate code with any generator
    Expected: Generated code can be downloaded successfully
    Actual : 500 Internal Error
@aedelmann aedelmann added the bug label Dec 11, 2019
@aedelmann aedelmann added this to the 0.13 milestone Dec 11, 2019
@aedelmann
Copy link
Contributor Author

Hi @kolotu
do you have an idea why this is happening ? Might this have sth to do with the caching ?

@kolotu
Copy link
Contributor

kolotu commented Dec 11, 2019

Hi @aedelmann,
does this happen for all generators?

@aedelmann
Copy link
Contributor Author

@kolotu
I tested with all with the same error

@kolotu
Copy link
Contributor

kolotu commented Dec 11, 2019

I'm pretty sure it has smth to do with the caching. Unfortunately I cannot reproduce it locally yet. I'll look into it.

@aedelmann
Copy link
Contributor Author

Maybe it has sth to do with the missing config for privileged user on dev system. Just an idea

@kolotu
Copy link
Contributor

kolotu commented Dec 11, 2019

Telling from the logs, it looks like the generator lambda is called, but the generator doesn't respond within 3 seconds, which leads to a timeout and the following exception. So I'd assume that the issue is more related to the generators.

kolotu pushed a commit to bosch-io/vorto that referenced this issue Dec 13, 2019
@kolotu
Copy link
Contributor

kolotu commented Dec 13, 2019

Thanks to @somesh-kumar I've finally found the root cause for this error. The Lambda GeneratorExecutionHandler sets the filename in the Content-Disposition header and adds quotation marks before and after the filename. When deserializing, this is interpreted as an additional quotation mark at the end of the filename (i.e. filename.json" or filename.zip"). That causes the attachment validation in the Vorto Repository to fail.

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

No branches or pull requests

2 participants