Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 296312

Problems with entity route auto-generation

$
0
0

Hi,

I don't know if it is a bug, but when I send GET request to my custom entity, I received an error 500.

The watchdog entry :

Symfony\Component\Routing\Exception\RouteNotFoundException : Route "entity.MY_ENTITY_TYPE.canonical" does not exist. dans Drupal\Core\Routing\RouteProvider->getRouteByName() (ligne 191 de /Applications/MAMP/htdocs/drupal8/core/lib/Drupal/Core/Routing/RouteProvider.php).

It's worry because one of my custom entity without bundle works perfectly.
But, this entity is configured to accept bundles. If I add only one bundle, it's OK. But when I add another bundle and I try to access to one entry of this new bundle via REST, Drupal save this error.

My endpoint :
http//mydrupal.env/MY_ENTITY/3?_format=json

Thanks,

Anthony (french who have bad english)


Viewing all articles
Browse latest Browse all 296312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>