I’m trying to integrate erpnext for warehouse management to our own instrument register hosted at our local server. I’m using php and frappe client library.
The problem is I don’ know how to add new “Serial No” via api call.
I have the client configured and I can login and read user info, search serial numbers etc…
$client = new FrappeClient();
$result = $client->get(
What parameters should I use to create new serial no?
I’m getting http error 500 with following parameters:
I tried adding “Person” via api to keep things simple.
now I got the following error
Traceback (most recent call last):
File "/home/frappe/benches/bench-2016-12-27/apps/frappe/frappe/app.py", line 60, in application
response = frappe.api.handle()
File "/home/frappe/benches/bench-2016-12-27/apps/frappe/frappe/api.py", line 115, in handle
data = json.loads(frappe.local.form_dict.data)
File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads
File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
sorry, I don’t have the code installed. I use erpnext.com hosted server. Our own server is windows 2008 r2 apache and I’m trying to access the rest interface from PHP code. I can login and read / search but cannot send any new items. The JSON is not accepted.