Closed (fixed)
Project:
Commerce Yotpo
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2014 at 15:06 UTC
Updated:
20 May 2015 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lanceh1412 commentedSomething like
Comment #2
lsolesen commentedCould you create a patch for this change?
Comment #3
lanceh1412 commentedComment #4
joelpittetAre there any other codes we should watch for, like 304?
Maybe $code >= 200 AND $code < 400 or maybe just the 2xx codes?
Either way I've no problem committing this, thank you for creating the patch @lanceh1412
Comment #5
lanceh1412 commentedI don't know. Generally the response code should be 200. Anything else generates a notice in watchdog. If the return was generally not 200 would this indicate an issue e.g 301 would suggest that we need to update the url? I'm just thinking that maybe we should report on anything other than 200. I've been running this code for a while and never had noticed any entries in the log.
Comment #6
joelpittetWell that makes sense, if we catch a bunch of these and they are in a different code that is reasonable we can adjust the condition. This doesn't affect the code path so I'm committing this.
Thanks for this @lanceh1412
Tweaked it slightly on commit because we can't be sure a code property exists and following how we've done this in
commerce_yotpo_settings_form_send_orders