question

Paxton avatar image
Paxton asked

Maximum script size?

I used the new Reindeer Games trivia template to make a new skill locally and it works well. However, I'd like to make the quiz have a much larger repository of trivia questions, but get an error message when the size goes over 20K. Is there any way I can increase that maximum so that I can add more questions to the trivia quiz?
alexa skills kitsubmission testing certification
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Lawrence Krubner avatar image
Lawrence Krubner answered
@Paxton -- I don't know how many you mean by this: "a much larger repository of trivia questions" Do you mean intents, or code? If you mean code, then I assume you are building your app inside of Amazon's interface? You could have an app of any size, so long as you set up sufficient hosting for it, and deploy it yourself. I don't know if there is a limit on how many intents you can have. I assume there must be a some practical limit, based on response time.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Galactoise avatar image
Galactoise answered
I assumed he meant that there was a 20k max to his Lambda function's JS. Realistically if you have a giant list of questions you probably want some sort of DB anyway, though.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Paxton avatar image
Paxton answered
Yes - it is a 20K max for the Lambda JS. And a database would naturally be a better choice. But as a newbie not experienced with all that yet, I was hoping that a larger limit for hard-coded questions might be possible somehow (as this is mostly a local family project). But that may not be the case. I may have to learn lambda database techniques to continue!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Galactoise avatar image
Galactoise answered
I imagine there are things that you could do that would be less involved than a true DB if all you have is static questions and answers. Maybe you could host a csv file somewhere, and have your Lambda function read that in?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Michael E. Strupp avatar image
Michael E. Strupp answered
I'm currently running a script on Lambda that's 65K in size.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Paxton avatar image
Paxton answered
Ah, Michael - I think you've helped me figure this out. I was using the inline editor, and when I go over 20K, a message appears at the bottom, saying "Your inline editor code size is too large. Maximum size is 20.0 kB.". But if I look at the option of uploading a zip file, it says it will go to 10MB. So it looks like my 'maximum' was only for the method I used to input the script. Thanks everyone for your help!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

kensanderson avatar image
kensanderson answered
Paxton, do you know if there is a specific naming convention for Python scripts as well? I'm having a similar issue.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Paxton avatar image
Paxton answered
That I don't know. I just know I had a problem with the zip file, because I had originally named it something other than "index.js" for the javascript within.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.