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

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

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

Postby fostah » Tue Mar 14, 2017 8:51 pm

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

Postby fostah » Wed Aug 23, 2017 4:51 pm

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.

Return to “Zimlets”

Who is online

Users browsing this forum: No registered users and 1 guest