[SOLVED] service/zimlet/res/Zimlets-nodev_all.js.zgz returning 500 error

Interested in talking about Mash-up's? This is the place.
Post Reply
fostah
Posts: 5
Joined: Mon Oct 24, 2016 8:53 pm

[SOLVED] service/zimlet/res/Zimlets-nodev_all.js.zgz returning 500 error

Post by fostah »

Platform: Zimbra Network Edition 8.6

I am developing a custom zimlet for a client, and the zimlet runs perfectly in ?dev=1 mode.

However, in production mode, I am getting back a 500 error for the following requests while loading the zimlet:
GET https://zimbra.diamond.dev/service/ziml ... 0d93afea2a
GET https://zimbra.diamond.dev/service/ziml ... 0d93afea2a

Is there a log I can see why this is returning a 500? Or has anyone else ran into this issue?
fostah
Posts: 5
Joined: Mon Oct 24, 2016 8:53 pm

Re: service/zimlet/res/Zimlets-nodev_all.js.zgz returning 500 error

Post by fostah »

For anyone else having this problem,

This issue was caused by two issues:
- YUI Compressor (used to package the JS) was not validating. Download the YUI compressor JAR to validate manually to see if your code passes.
- Ensure you compile your code down to ES5. ES6+ will cause compilation errors.

For further debug:
Please check "/opt/zimbra/log/mailbox.log" and "/opt/zimbra/log/zmmailboxd.out" log at the time of error.
Post Reply