JSON API V8 creation problems

Hi, there,
I’m testing the JSON API V8 (SuiteCrm Version 7.11.3) with POSTMAN, this because I’ll have to synchronize the company ERP with the CRM.
Specifically I’m testing the creation of Accounts and Contacts.
In creating accounts I have encountered the following problems:

  1. I can only use the attribute ‘name’ for what concerns the object “attributes”, if I add any attributes the creation is not successful (fig1.png)
  2. the attribute “name” accepts only continuous text without spaces

If I update the Accounts I can set some attributes but not all… for example ‘shipping_address_street’, ‘website’ and ‘email1’ don’t work and they always generate the same error as fig1.png.
As for creating or updating records, for the Contacts module, I get the same error (status 400, detail: The option “attributes” with value array is invalid ) if I add some attributes like ‘phone_home’ or ‘email’ (fig2.png).
Any suggestions?

Thanks!!!

The new version which just came out was centered around solving v8 API bugs, you might want to check that out.

Other than that, I am not really familiar with the API so I can’t help much. I hope someone else will come here and help you…

Thanks pgr,
I will wait for the release of the new version :slight_smile:

It was already released!

https://suitecrm.com/upgrade-suitecrm/

Hi pgr,
I was all happy with the news of the new release, but unfortunately the joy disappeared immediately encountering problems with the version upgrade :frowning: .
I had already upgraded to version 7.11.3 without any problems.
But when I try to load the upgrade to 7.11.4 the process stops without error notification and without any logging.
As per the manual for the upgrade I use the ‘Upgrade Wizard’ tool Admin->Upgrade Wizard, I successfully complete the first of five upgrade steps(fig1.png) .
When I move to the second step, I load the file for the upgrade (fig2.png).
Clicco sul bottone ‘next’ e quì ottengo una schermata bianca… senza nessun avviso o notifica di errore(fig3.png).
At this point it’s as if something in the cache had been damaged because if I leave the page and go back to ‘UpgradeWizard’ I get the same blank page.
To eliminate this problem I have to manually delete the contents of the /cache folder :frowning:
I don’t understand why the first step of control is successful… I don’t know where to look…

Check that you have sufficient values in your php.ini

  • post_max_size
  • upload_max_size
  • memory_limit
  • max_execution_time

Then restart your web server.

If necessary, clear “upload/upgrades” to restart fresh.

Keep an eye on upgradeWizard.log and php_errors.log.

I tried to check step by step everything you recommended but the problem persists :frowning: , I also deleted the contents of the folder upload/upgrades.
My php.ini values are:

  • upload_max_filesize = 100M
  • post_max_size = 100M
  • max_input_time = 500
  • memory_limit = 1024M
  • max_execution_time = 6000

Here is the log ‘upgradeWizard.log’ cleaned only of notifications regarding the problem:

Mon, 06 May 2019 15:13:33 +0200 [UpgradeWizard] - setting session variables...
Mon, 06 May 2019 15:13:33 +0200 [UpgradeWizard] - at preflight.php
Mon, 06 May 2019 15:13:33 +0200 [UpgradeWizard] - unzipping files in upgrade archive...

Il problema sembra non produrre righe di log nel file ‘suitecrm.log’.

The following is the part of the errors found in the apache log file:

[Mon May 06 15:10:15 2019] [warn] [client 172.24.1.108] PHP Warning:  ZipArchive::extractTo(): No space left on device in /var/www/sites/x-crm-dev/include/utils/php_zip_utils.php on line 75, referer: http://x-crm-dev.it/index.php
[Mon May 06 15:10:15 2019] [warn] [client 172.24.1.108] PHP Warning:  file_put_contents(): Only 0 of 178 bytes written, possibly out of free disk space in /var/www/sites/x-crm-dev/include/utils/sugar_file_utils.php on line 161, referer: http://x-crm-dev.it/index.php
[Mon May 06 15:10:15 2019] [warn] [client 172.24.1.108] PHP Warning:  file_put_contents(): Only 0 of 178 bytes written, possibly out of free disk space in /var/www/sites/x-crm-dev/include/utils/sugar_file_utils.php on line 161, referer: http://x-crm-dev.it/index.php
[Mon May 06 15:10:20 2019] [warn] [client 172.24.1.108] PHP Warning:  file_put_contents(): Only 0 of 220 bytes written, possibly out of free disk space in /var/www/sites/x-crm-dev/include/utils/sugar_file_utils.php on line 161, referer: http://x-crm-dev

It seems to be a problem related to the function of unzip…

Hello Pgr,
I solved… reading the logs of apache was a problem of space…
Now I can test the new V8 API! :woohoo:
Thank you!