Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute POST call #25

Open
Eulnono76 opened this issue Mar 15, 2022 · 0 comments
Open

Failed to execute POST call #25

Eulnono76 opened this issue Mar 15, 2022 · 0 comments
Assignees

Comments

@Eulnono76
Copy link

Eulnono76 commented Mar 15, 2022

Hello,

Trying to insert Invoice via webservice, but getting "Failed to execute POST call" :

require 'vendor/autoload.php';

use Salaros\Vtiger\VTWSCLib\WSClient;


$client = new WSClient('http://vtiger.weaccess.pro/', 'admin', 'mypass');

$array = Array(
'subject'=> 'sujet',
'invoicedate'=>'01-01-2020',
'duedate' => '01-01-2020',
'account_id'=>'11x4',
'invoicestatus'=>'AutoCreated',
'assigned_user_id' => '1',
'createdtime'=>'01-01-2020',
'modifiedtime' => '01-01-2020',
'bill_street'=> 'Adresse de Facturation',
'ship_street' => 'Adresse de Livraison',
    'productid' => '14x114',
    'quantity' => '1.000',
    'listprice' => '70.00000000',
    'tax1' => '20.000',
    'tax2' => '20.000',
    'tax3' => '20.000',
    'pre_tax_total' => '3999.00000000',
    'received' => '0.00000000',
    'balance' => '6398.40000000',
    'hdnS_H_Percent' => '0.00000000',
    'potential_id' => '',
    'image' => '',
    'purchase_cost' => '20.00000000',
    'margin' => '50.00000000',
    'source' => 'CRM',
    'region_id' => '0',
);


var_dump($client->entities->createOne('Invoice',$array));

Full error :
Fatal error: Uncaught Salaros\Vtiger\VTWSCLib\WSException: [FAILED_SENDING_REQUEST]: Failed to execute POST call on "http://vtiger.
me/webservice.php" URL

thrown in /var/www/vtigercrm/Webservice/vendor/salaros/vtwsclib-php/src/Session.php on line 250

Many thanks.

@salaros salaros self-assigned this Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants