You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After integrating the REST API package (commit 121c25b) with Krayin CRM v2.0.1, I encountered an error when attempting to create contacts via API endpoints. The issue specifically occurs when making POST requests to the following endpoints:
{
"message": "Class 'Webkul\\Attribute\\Http\\Requests\\AttributeForm' does not exist",
"exception": "ReflectionException",
"file": "/var/www/htdocs/example.com/crm/vendor/laravel/framework/src/Illuminate/Routing/ResolvesRouteDependencies.php",
"line": 81,
"trace": [...]
}
Steps to Reproduce:
Install Krayin CRM v2.0.1.
Install the latest commit (121c25b) of the REST API package.
Try creating a new contact via the /api/v1/contacts/persons or /api/v1/contacts/organizations endpoint.
The error occurs during the request, and the contact is not created.
Expected Behavior:
The API should correctly handle the request and create the contact as expected.
Environment:
Krayin CRM v2.0.1
REST API Package Commit 121c25b
PHP 8.2.x
Additional Context:
It seems the Webkul\Attribute\Http\Requests\AttributeForm class might be missing or not properly registered within the application. Since the REST API relies on core functionality in Krayin CRM, it's unclear if this issue is related more to the CRM codebase or the API package.
We are currently evaluating whether to stay on version 2.0.1 or revert to 1.3.0 to ensure full API functionality.
Could you provide clarification or guidance on this issue?
The text was updated successfully, but these errors were encountered:
Description:
After integrating the REST API package (commit 121c25b) with Krayin CRM v2.0.1, I encountered an error when attempting to create contacts via API endpoints. The issue specifically occurs when making POST requests to the following endpoints:
/api/v1/contacts/organizations
/api/v1/contacts/persons
The system throws a ReflectionException stating that the class Webkul\Attribute\Http\Requests\AttributeForm does not exist.
Request Example (for /api/v1/contacts/persons):
Response:
Steps to Reproduce:
/api/v1/contacts/persons
or/api/v1/contacts/organizations
endpoint.The error occurs during the request, and the contact is not created.
Expected Behavior:
The API should correctly handle the request and create the contact as expected.
Environment:
Krayin CRM v2.0.1
REST API Package Commit 121c25b
PHP 8.2.x
Additional Context:
It seems the
Webkul\Attribute\Http\Requests\AttributeForm
class might be missing or not properly registered within the application. Since the REST API relies on core functionality in Krayin CRM, it's unclear if this issue is related more to the CRM codebase or the API package.We are currently evaluating whether to stay on version 2.0.1 or revert to 1.3.0 to ensure full API functionality.
Could you provide clarification or guidance on this issue?
The text was updated successfully, but these errors were encountered: