Getting '500' Error on APIs which were working fine till yesterday - circuit-sdk

I am getting Http 500 error since yesterday on all the calls to Circuit APIs.
Is some deployment work is going on? Please help me out. i have a demo next week.

The circuitsandbox.net has been updated yesterday from 1pm EST and was offline for 2 hours. Did you test during that timeframe? I am not aware of any issues.

Related

Trying to pull commits over a period of time

i tried using gh api to retrieve commits with the following code
gh api repos/apache/airflow/commits
and it returns me only commits done for the past 3 days.
How do I retrieve for like maybe past 3 months?
I saw in the documentation that there is since and until. What should be the syntax?
Thank you.
If anyone is wondering, I have solved the issue using curl.
startdate='2022-02-26';
enddate='2022-08-27';
json_string=os.popen("curl -sS \"https://api.github.com/repos/apache/airflow/commits?since="+startdate+"T00:00:00Z&until="+enddate+"T23:59:59Z&per_page=100&page="+str(i)+"\"").read();

Google Calendar API gives 403 Quota exceeded error when limit is not exceeded

I have a problem with the Google Calendar API.
We are using the API with OAuth2 authentication in Python code.
It was working fine for about three years, but after today, it started to output the following error log.
<HttpError 403 when requesting https://www.googleapis.com/calendar/v3/calendars/**********************/events?alt=json returned "Quota exceeded for quota metric 'Queries' and limit 'Queries per day' of service 'calendar-json.googleapis.com' for consumer ‘project_number:*************'.">
However, the above log is not always output, and the error rate is about 30%.
We have set the allocation limit to 1,000,000, and there are about 3,000 queries for 24 hours.
Even though the number of times per day has not reached the limit, we are being told to use up our Quota for the day.
The API methods we are using are as follows
calendar.v3.Events.Insert
calendar.v3.Events.Get
calendar.v3.Events.Update
Delete calendar.v3.Events.
calendar.v3.CalendarList.
List calendar.v3.Calendars.
List calendar.v3.Acl.
Calendars.Insert calendar.v3.
Calendars.v3.Events.Insert is requested about 2000 times in 24 hours.
Calendars.Insert has been requested 2 times in 24 hours.
Has anyone encountered this before?
Thank you.
We have the exact same problem here.
Everything was working fine and suddenly starting this morning we have these 403 errors (RateLimitExceeded) coming up, with a 50% rate.
Our API usage is exactly the same as before. Our quota sits at 600 requests/minute/user and 1000000 requests per day. All we do is manual, so I don't see how we got past that limit suddenly...
It looks like other people have the same problem, it must be a bug in Google APIs.
The bug has been reported to Google already, see here: https://issuetracker.google.com/issues/182497593
I suggest you star this issue and wait for Google's answer.

Sitefinity personalization by Time of Day

I have created several "user segments" and added corresponding personalized versions of content blocks in a page. For some simple segments, for instance, that just check if the user has visited a specific page, it works flawlessly.
But for others, specifically when adding the "Time of day" characteristic, it fails to select any of the user segments and displays the default content.
I've created a segment that just checks if the time of day is "between 3AM and 11:30 AM" and I set its priority to "1." My understanding is that, because it is the top priority item, that even though there are other segments that could apply, this is the one that will be chosen if the current time of day is in that time frame. But its not working.
Any thoughts on how I may be misunderstanding the process? or tips/struggles others have overcome working w/ Sitefinity personalization? Thanks!
EDIT: if I set the Time of Day segment criteria to "IS NOT" between 12:00 AM and 11:59 PM then it works. In other words, matching the time of day is always returning false unless I specifically check if its false, in which case it is and the personalized content displays. What the heck?
I tested the case with 10.2 and everything is working fine. I found this closed bug in the feedback portal. Review your version. In case that you cannot upgrade you can try to implement your own criteria.
So it turns out that this problem only exists for me when connecting to the webserver while running the VPN that we've been using throughout development. I have not narrowed down what about that process could possibly be causing the problem, but at this point it seems that it's not so much a sitefinity issue or configuration problem on our server end.

How do I make woocommerce error messages block the user from continuing?

Approx 2 years ago, I wrote a custom plugin that checks order items in the cart for specific requirements. If the requirements are not met, it displays an error and does not allow the customer to check out. This code has been working well for approx 2 years. Recently the code broke. It must have been due to the recent WooCommerce upgrades, as we hadn't touched the code in ages. I spent a while debugging it and this is what I found:
wc_add_notice doesn't do anything anymore. When I changed it to wc_print_notice, it displays the error notice.
In the past, when I used wc_add_notice on the cart or checkout page, it would display the error message and not allow the user to continue to checkout. Now that I am using wc_print_notice, it only displays the error message, but it does allow the user to continue. I spent a long time working on this today and I can't figure out how to stop the user from continuing to check out.
Any suggestions..?
And, does anyone know where I can read documentation of the WooCommerce upgrade changes related to my issue?
Thanks!
PS: If you want to see code samples, here are 2 articles which I found today, that display sample code doing exactly what my code does:
https://www.sitepoint.com/minimum-checkout-requirements-in-woocommerce/
https://gist.github.com/kloon/4545677

itunes connect sales reports won't go further than October 30th

I'm trying to view the Sales and Trends for my apps in iTunes Connect. I am only able to see sales up until 30th October, when I try to change the dates to include all days up to 5th November it does nothing.
It's quite possible that I had no sales in the time period 30th October - 4th November, but yesterday I had three new apps approved and released, I know that some of my friends have downloaded them so there should be some data to show.
Is there anything I can do to fix this? I've emailed Apple but their reply can take 3 days apparently, and I'm anxious to get up to date figures for my new app.
Update
It magically seems to work for me today. And it seems that I had some sales in the period 30th October - 5th November, so the issue can't be due to no sales.
I was having the same problem. I cleared out my browser history and cache and it is now working. If that doesn't work for you, try another browser. I usually use Chrome. Before clearing out Chrome's cache/history, I decided to try Safari. No luck. Then I tried Firefox and it worked there.
It appears like there is no sales data for the days after October 31; iTunes Connect does not allow me to display any date in November. I contacted support and will share the results later on.
Is there anything I can do to fix this?
I use iTunes Connect app from Apple https://itunes.apple.com/app/itunes-connect/id376771144?mt=8 - it works perfectly fine (while I see the same outdated results in browser)
This doesn't 'fix' the problem, but if you create a new user within your account, it appears to allow you to query to the current date. (Nov 5th). Time will tell if this reduces back to Oct 30th. HTH