<div dir="ltr">Ah i didn't realize that the AJAX call adds a "ubus_rpc_session":"<big string>" to the ubus call!<div>I changed how my arguments are handled and now everything works.</div><div><br></div><div>Thanks for the pointer!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 2, 2015 at 6:00 AM, Jo-Philipp Wich <span dir="ltr"><<a href="mailto:jow@openwrt.org" target="_blank">jow@openwrt.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
the number 2 corresponds to "UBUS_STATUS_INVALID_ARGUMENT" so your AJAX<br>
call is submitting invalid data.<br>
<br>
~ Jow<br>
_______________________________________________<br>
openwrt-devel mailing list<br>
<a href="mailto:openwrt-devel@lists.openwrt.org">openwrt-devel@lists.openwrt.org</a><br>
<a href="https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel" rel="noreferrer" target="_blank">https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel</a><br>
</blockquote></div><br></div>