magento / magento2-upward-connector

Magento module for routing front-end requests to UPWARD-PHP
Open Software License 3.0
24 stars 27 forks source link

Upward connector can't process the default upward.yml data #24

Closed megastallman closed 4 years ago

megastallman commented 4 years ago

Hi guys! Trying to run the php upward connector(1.0.0) with Venia. I've added the right upward.yaml file to Magento Admin settings. It gives me the following on storefront page: {"error":"No definition for veniaResponse.status"} Ok, I've found that code and added a var_dump: object(Magento\Upward\Definition)#362 (3) { ["basepath":"Magento\Upward\Definition":private]=> string(52) "/srv/public_html/node_modules/@magento/venia-concept" ["treeAddress":"Magento\Upward\Definition":private]=> string(0) "" ["data":protected]=> array(3) { ["status"]=> string(20) "veniaResponse.status" ["headers"]=> string(21) "veniaResponse.headers" ["body"]=> string(18) "veniaResponse.body" } } {"error":"No definition for veniaResponse.status"}

It does read the yaml file. How are you using it at all? What else did I miss? Do I lack of any configuration?

megastallman commented 4 years ago

Let me help myself on that issue: $ find . -iname 'upward.yml' ./node_modules/@magento/venia-concept/dist/upward.yml ./node_modules/@magento/venia-concept/upward.yml The file in "dist" directory has real content. The letter one - is just empty.