klaviyo/ruby-klaviyo

Errno::ENAMETOOLONG: File name too long @ rb_sysopen

Closed this issue · 2 comments

Attempting to send a tracking payload I'm hitting this error with a request looking like:

http://a.klaviyo.com/crm/api/track?data=eyJ0b2tlbiI6InBrXzA3MTIwNjEyODliZTQ2NjM2ODRjMGRjOWZhNjcyMDg1NWQiLCJldmVudCI6IlBsYWNlZCBPcmRlciIsInByb3BlcnRpZXMiOnsiT3JkZXJOdW1iZXIiOiJSNTQ1ODAwMDU1IiwiQ2F0ZWdvcmllcyI6WyJTb2Z0d2FyZSIsIkZYIl0sIkl0ZW1OYW1lcyI6WyJSaWZ0IEZpbHRlciBMaXRlIC0gTWFzdGVyIl0sIkRpc2NvdW50Q29kZSI6IiIsIkRpc2NvdW50VmFsdWUiOiItNDkuMCIsIkl0ZW1zIjpbeyJQcm9kdWN0SUQiOjgsIlNLVSI6Ik1BLVNGLTAwMiIsIlByb2R1Y3ROYW1lIjoiUmlmdCBGaWx0ZXIgTGl0ZSAtIE1hc3RlciIsIlF1YW50aXR5IjoxLCJJdGVtUHJpY2UiOiI0OS4wIiwiUm93VG90YWwiOiI0OS4wIiwiUHJvZHVjdFVSTCI6Imh0dHBzOi8vbG9jYWxob3N0OjMwMDAvcHJvZHVjdHMvcmlmdC1maWx0ZXItbGl0ZSIsIkltYWdlVVJMIjoiLy9zMy11cy1lYXN0LTIuYW1hem9uYXdzLmNvbS9taW5pbWFsLWF1ZGlvLXN0YWdpbmcvVXNlcnMvamFjb2JwZW5uL2phY29icGVubi9EZXZlbG9wbWVudC9NaW5pbWFsL1dlYnNpdGUvbWluaW1hbGF1ZGlvL3B1YmxpYy9zcHJlZS9wcm9kdWN0cy8xNS9wcm9kdWN0L3JpZnQtZmlsdGVyLWxpdGUtMS5wbmc/MTYzMjM0Mjc2OSIsIlByb2R1Y3RDYXRlZ29yaWVzIjpbIlNvZnR3YXJlIiwiRlgiXX1dLCJCaWxsaW5nQWRkcmVzcyI6eyJGdWxsTmFtZSI6Ik1pbm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cyI6W10sIiRldmVudF9pZCI6IlI1NDU4MDAwNTUiLCIkdmFsdWUiOiIwLjAifSwiY3VzdG9tZXJfcHJvcGVydGllcyI6eyJFbWFpbCI6ImFkbWluQGV4YW1wbGUuY29tIiwiJGVtYWlsIjoiYWRtaW5AZXhhbXBsZS5jb20iLCJlbWFpbCI6ImFkbWluQGV4YW1wbGUuY29tIn0sImlwIjoiIiwidGltZSI6MTYzMjM0NzU2MH0=

Is this simply too much data for event properties?

is there a reason we're using:

open(url).read 

If I simply do a request to the endpoint I get a 1 returned the same as File.open and don't this this error -- however I'm not seeing the event in the analytics on Klaviyo

Hmm -- okay it appears I was using an extension which included Klaviyo -- including the open-uri gem in that project somehow stopped the 1.0.0 version of Klaviyo from functioning correctly, however, I didn't realize that was such an old version of this gem, closing