[OpenWrt-Devel] Ubus request through AJAX issue

Lazar Demin lazar at onion.io
Wed Sep 2 11:15:44 EDT 2015


Ah i didn't realize that the AJAX call adds a "ubus_rpc_session":"<big
string>" to the ubus call!
I changed how my arguments are handled and now everything works.

Thanks for the pointer!

On Wed, Sep 2, 2015 at 6:00 AM, Jo-Philipp Wich <jow at openwrt.org> wrote:

> Hi,
>
> the number 2 corresponds to "UBUS_STATUS_INVALID_ARGUMENT" so your AJAX
> call is submitting invalid data.
>
> ~ Jow
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150902/ce9e6d2a/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list