Web Connection
API-JSON- Newton
Gravatar is a globally recognized avatar based on your email address. API-JSON- Newton
  Joel Aiken
  All
  May 31, 2018 @ 05:58pm

I think the error is coming from the code below. Just thought I would post here in case the problem was obvious to one of you

The JSON data comes from Shopify.com and has been working normally every 30 minutes for six months.

DO wwJsonSerializer

loSer = CREATEOBJECT("wwJsonSerializer")
loCustList = loSer.DeserializeJson(lcJson)

Thanks Joel

Gravatar is a globally recognized avatar based on your email address. re: API-JSON- Newton
  Joel Aiken
  Joel Aiken
  May 31, 2018 @ 06:13pm

Here's a more complete look at the error page Joel Aiken

Gravatar is a globally recognized avatar based on your email address. re: API-JSON- Newton
  Rick Strahl
  Joel Aiken
  May 31, 2018 @ 07:57pm

Usually that means invalid JSON. Make sure the string is what you think it is...

Based on the message I'm thinking lcJson is an empty string.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: API-JSON- Newton
  Joel Aiken
  Rick Strahl
  Jun 1, 2018 @ 08:48am

Rick, Thanks. I discovered my problem was exactly as you described. Empty file where the JSON was supposed to be. This may be of interest to others, my APIs with Shopify came to a halt on 5-31-18 because of the new regulation concerning the handling of data with customer's personal info. It was not a programming error on my part. there is a new regulation called GDPR which stands for "General Data Protection Regulation" strengthening the requirements for handling such data.

The error message I got was because my program did not check for an empty JSON data file. Shopify would always respond to my API requests, even if something like "no data". But the last 24 hours, Shopify has failed to respond at all, to API requests.

I see Shopify's message boards are filled with developers wondering what's going on. I hope to get in step with whatever I have to do to resume my API connection. So far all I see is a reference to browser requirements for TLS 1.2, and the machines on which I run APIs have that, but the browser is not used in the API request. The API request is a URL in a program compiled in an exe. Joel Aiken

Gravatar is a globally recognized avatar based on your email address. re: API-JSON- Newton
  Rick Strahl
  Joel Aiken
  Jun 1, 2018 @ 11:35am

Let us know what you find out. I think there are a few developers here who are using Shopify...

+++ Rick --

Gravatar is a globally recognized avatar based on your email address. re: API-JSON- Newton
  Joel Aiken
  Rick Strahl
  Jun 1, 2018 @ 05:26pm

As of 8PM Eastern time, Shopify API's are back to normal. The entire 32 hour outage was caused by Shopify. I didn't change anything, and bingo, all running fine again at 8PM.

The earlier glitch was caused by my program trying to process an empty JSON file. I had never encountered an empty JSON file until Shopify stopped responding to my API requests.

So, at this time, the Shopify APIs are responding normally to requests, and the Shopify webhooks are sending data to my app in a normal fashion.

The bottom line to this adventure is I'm glad I didn't pull my hair out trying to solve the interruption in data flow. I was patient and it took 32 hours, but all is normal again without me lifting a finger. I just had to trust that Shopify's systems were at the heart of the problem.... even though they never said that in plain language. They kept dancing around the problem, implying that security was not tight enough on client servers.

Shopify is a major player in the world of online web shopping systems. I have been dealing with them for several years and am quite impressed with their system. Their API setup is quite good and thorough. There are thousands of developers building very useful add-on apps for Shopify.

© 1996-2024