Announcement

Collapse
No announcement yet.

Problem with the api

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with the api

    Hello,
    I tried connecting espo with another website through a webhook using the REST API and PHP using the example found here: https://www.espocrm.com/documentatio...pi-client-php/
    However when i try to load the script it returns me this error:
    Fatal error: Uncaught Exception: EspoClient: Unknown Error in C:\xampp\htdocs\EspoCRM\class.php:138 Stack trace: #0 C:\xampp\htdocs\EspoCRM\add.php(8): EspoApiClient->request('POST', 'Lead', Array) #1 {main} thrown in C:\xampp\htdocs\EspoCRM\class.php on line 138
    Can anyone help me figure out why this is not working?

  • #2
    Hi,

    Server might have returned an error. Check logs. See: https://github.com/espocrm/documenta...utorial.md#php

    I suppose your api user doesn't have a permission to create a lead.
    Last edited by yuri; 04-20-2020, 07:51 PM.

    Comment


    • #3
      Hello,

      I have the same problem, maybe anyone have idea how to fix it? my api user have all permissions and it still doen't work

      Comment


      • #4
        Can't help you since it Webhook which I haven't done before. If you use Wordpress website this post might be useful for you.

        In the future this thread will be use for discussion; the Wiki hosted on Github will be used instead to post update; please see: https://github.com/o-data/EspoCRM-Learning-and-Design/wiki Part 2 of this post can be found here: https://forum.espocrm.com/forum/gene...5114#post55114 (https://forum.espocrm.com/forum/general/54706

        Comment

        Working...
        X