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

Duplicate routes in Bagisto and Rest API #372

Closed
JelleGroenendal opened this issue Aug 30, 2024 · 8 comments
Closed

Duplicate routes in Bagisto and Rest API #372

JelleGroenendal opened this issue Aug 30, 2024 · 8 comments
Assignees

Comments

@JelleGroenendal
Copy link

We noticed a duplicate route naming with a clean install of Bagisto and Bagisto Rest API

packages/Webkul/Admin/src/Routes/reporting-routes.php
Line 19: admin.reporting.customers.stats
Line 34: admin.reporting.products.stats

vendor/bagisto/rest-api/src/Routes/V1/Admin/reporting-routes.php
Line 26: admin.reporting.customers.stats
Line 33: admin.reporting.products.stats

When we run php artisan optimize it results in:

In AbstractRouteCollection.php line 247:

Unable to prepare route [reporting/customers/stats] for serialization. Another route has already been assigned name [admin.reporting.customers.stats].

Failed to run artisan optimize: exit status 1

@AliYazdanifar
Copy link

I have the same error

@Dansday
Copy link

Dansday commented Sep 24, 2024

@devansh-webkul I have same error, can you help to check this

@KharisG1234T
Copy link

how to fix it?

@devansh-webkul
Copy link
Member

We will fix it as soon as possible.

@devansh-webkul
Copy link
Member

Fixed and provided v2.1.1 and v2.2.1.

@KharisG1234T
Copy link

Fixed and provided v2.1.1 and v2.2.1.

ok thx,it's work

@KharisG1234T
Copy link

KharisG1234T commented Sep 25, 2024

image

but in configuration i got this error

@amit-webkul
Copy link
Collaborator

Hello @KharisG1234T ,

This issue is not coming from the REST API.

The error clearly states that the 'info' key is undefined in your configuration section. This means that in your packages -> Admin -> src -> Config -> system.php file, one of the arrays is missing the 'info' key, which is required.

Please check this, and you should be able to find the solution.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants