-
Notifications
You must be signed in to change notification settings - Fork 19
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
SDKException while trying to createAsZohoable() #30
Comments
The "funny" thing is, that it works on my machine but not on the live Server (Cloud Server, hosted by Hetzner). I use Herd for local development. I've also created a ZohoAuthenticable File to combine the default Authenticable with Zohoable on the User Model. This is the code: <?php
namespace App\Traits;
use Asciisd\Zoho\Contracts\Repositories\ZohoableRepository;
use Asciisd\Zoho\Traits\Zohoable as ZohoableModel;
use Asciisd\Zoho\ZohoManager;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\MustVerifyEmail;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\Access\Authorizable;
abstract class ZohoAuthenticable extends Model implements
ZohoableRepository,
AuthenticatableContract,
AuthorizableContract,
CanResetPasswordContract
{
use ZohoableModel, Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail;
protected string $zoho_module_name;
protected ZohoManager $zoho_module;
public function __construct(array $attributes = [])
{
parent::__construct($attributes);
$this->zoho_module = $this->getZohoModule();
}
} |
Ok, look, you can get more detailed logs from storage/app/zoho/oauth/logs/ZCRMClientLibrary.log |
Same error like in my second image when I've tried to give it a shot through Tinkerwell. Caused by a TYPE ERROR. But, WHY? And what should I do now? As I've mentioned above, it works on my local machine (Laravel Herd) but not on the Live Server hosted by Hetzner. The Error is clear I think, thank you. But it is very interesting, why it is working on my local machine. I've tried it many times locally and it does what it should. After I've uploaded it to the live server, nothing works. -_-
|
I don’t know exactly what is happening in the live server, but I guess it could be the PHP version may led to the issue |
Just changing the type of lead source and lead status to Choice instead of string should fix the issue |
Hey
This is the error i got, when I try to create a User and after that, to run ->createAsZohoable
I've tried to do the same thing with Tinkerwell and this is the error I became:
It doesn't matter if I run createAsZohoable() with or without options. The error is still the same.
Here are my Settings out of the .env file:
Please HELP!
Thanks!
The text was updated successfully, but these errors were encountered: