vuestorefront / shopware-pwa

Shopware PWA for eCommerce. Headless storefront solution for Shopware 6, which communicates through the SalesChannel-API. Always Open Source, MIT license. Made with :blue_heart: by shopware AG & Vue Storefront.
https://frontends.shopware.com
MIT License
345 stars 103 forks source link

[BUG] No matching sales channel found. #852

Closed paulvanbladel closed 4 years ago

paulvanbladel commented 4 years ago

Created an online shop op shopware https://xxxx.shopwaredemo.store/ create new accesstoken in the backend app module.exports = { shopwareEndpoint: "https://xxxx.shopwaredemo.store", shopwareAccessToken: "SWSCAXBTYTDNZLRUVTFOSJHSAW", }; started the dev server on localhost 3000: getting error

 ERROR  [UseSessionContext][refreshSessionContext] {                                                                     17:17:20  
  message: 'No matching sales channel found.',
  statusCode: 412
}

When connecting to the standard demo api everything works as expected.

mkucmus commented 4 years ago

hi @paulvanbladel - it looks like you have set the wrong shopwareAccessToken. Shopware6 is looking for a sales channel with a specific access token, like the one you have provided. But there is no sales channel with that token apparently.

it was explained here: https://shopware-pwa-docs.vuestorefront.io/guide/troubleshooting.html#issues-caused-by-incorrect-configuration

patzick commented 4 years ago

closing as resolved, please let us know if it still occurs