slince / shopify-api-php

:rocket: Shopify API Client for PHP
MIT License
128 stars 48 forks source link

get shopify access scope error #108

Open newit-thongdv opened 2 years ago

newit-thongdv commented 2 years ago

Hi Team I am using package "slince/shopify-api-php": "^3.0", Today when i am re-install this package and try to get shopify access scope there are error occurs :

$client->getAccessScopeManager()->findAll(); => Undefined offset: 16 image When i debug this function then there is data from the response, but when going through the createMany function then an error occurred => I also checked package lock that is "version": "3.1.0"

slince commented 2 years ago

Hello

  1. Can you post your version now? using the following command.
    composer show slince/shopify-api-php
  2. Post the data structure image
newit-thongdv commented 2 years ago

Hello

  1. Current version not error is "version": "3.0.3". When I re-install "slince/shopify-api-php": "^3.0" then the package upgrade to "version": "3.1.0" => When use "version": "3.1.0" i can't not get shopify access scope
  2. Data image
slince commented 2 years ago

There is no problem with the data structure. If you can get here, there should be no problem next; Did you encounter this error when obtaining other resources?

If you can, please post the original PHP error report and JMS version composer show jms/serializer

newit-thongdv commented 2 years ago

Hi, Today i tried to install again and it worked well . i don't know why. Last time I also tried to install many times with "version": "3.1.0", but it didn't work and other resources working well (EXv: shop , orders). so i has rollback to version "3.0.3".

Thank for your support.

slince commented 2 years ago

After upgrading, you can try to delete meta cache from your cache directory