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?
[SOLVED] service/zimlet/res/Zimlets-nodev_all.js.zgz returning 500 error
Re: service/zimlet/res/Zimlets-nodev_all.js.zgz returning 500 error
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.
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.