Shopify - started getting 404 exceptions when updating variants -


i've had first shopify store running month now, using php batch script either create new products , variants, or update , when needed existing web-based product management system. seems have been running fine i've noticed i'm getting exception thrown when updating variants. i'm sure has been working fine (been able update variant needed) bit of figuring out why failing now.

here's example:

shopifyapiexception object ( [method:protected] => put [path:protected] => /admin/variants/4294967295.json [params:protected] => array     (         [variant] => array             (                 [price] => 8.00                 [sku] => 2217                 [id] => 2217                 [product_id] => 21880                 [inventory_management] => shopify                 [inventory_policy] => deny                 [inventory_quantity] => 1                 [option1] => plain \/ ex                 [option2] => strictly rhythm                 [option3] => sr12216                 [weight] => 330                 [weight_unit] => g             )      )  [response_headers:protected] => array     (         [http_status_message] => not found         [http_status_code] => 404         [server] => nginx         [date] => fri, 21 aug 2015 14:27:03 gmt         [content-type] => application/json; charset=utf-8         [transfer-encoding] => chunked         [connection] => keep-alive         [vary] => accept-encoding         [x-sorting-hat-podid] => 3         [x-sorting-hat-shopid] => 2234339         [x-sorting-hat-podid-cached] => 1         [x-sorting-hat-shopid-cached] => 1         [status] => 404 not found         [x-frame-options] => deny         [x-shopid] => 2234339         [x-shardid] => 3         [x-shopify-shop-api-call-limit] => 1/40         [http_x_shopify_shop_api_call_limit] => 1/40         [x-stats-userid] => 0         [x-stats-apiclientid] => 152673         [x-stats-apipermissionid] => 3265975         [x-xss-protection] => 1; mode=block; report=/xss-report/97471013-3a3c-4b82-a94d-868f9b7ac073?source%5baction%5d=update&source%5bcontroller%5d=admin%2fproduct_variants&source%5bsection%5d=admin         [set-cookie] => request_method=put; path=/         [x-request-id] => 97471013-3a3c-4b82-a94d-868f9b7ac073     )  [response:protected] => array     (         [errors] => not found     )  [message:protected] => not found [string:exception:private] => [code:protected] => 404 [file:protected] => /var/www/my-server/httpdocs/shopify_tools/shopify.php [line:protected] => 70 [trace:exception:private] => array     (         [0] => array             (                 [file] => /var/www/my-server/httpdocs/shopify_tools/batch_upload_items.php                 [line] => 347                 [function] => call                 [class] => shopifyclient                 [type] => ->                 [args] => array                     (                         [0] => put                         [1] => /admin/variants/4294967295.json                         [2] => array                             (                                 [variant] => array                                     (                                         [price] => 8.00                                         [sku] => 2217                                         [id] => 2217                                         [product_id] => 21880                                         [inventory_management] => shopify                                         [inventory_policy] => deny                                         [inventory_quantity] => 1                                         [option1] => plain \/ ex                                         [option2] => strictly rhythm                                         [option3] => sr12216                                         [weight] => 330                                         [weight_unit] => g                                     )                              )                      )              )      )  [previous:exception:private] => ) 

i've realised problem - may else.

i storing shopify variant id in int column in database , shopify variant ids have passed int limit of 4294967295 - switching bigint , reimporting variant ids solved problem.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -