« first day (685 days earlier)      last day (771 days later) » 

1:40 AM
@HenryEcker I don't know of anything in the API that might help
/write-permissions can return daily limits, but it does not return the number of actions left
 
1:52 AM
Hmmm. Okay. Thanks anyway.
What I'm currently doing is getting the flagging popup and searching the HTML for the number... Which is annoying primarily because of the 3 second global rate limit that prevents me from opening the flagging UI anywhere anytime I do the scrape...
 
2:11 AM
Wait, is the flag quota no longer displayed in the flag/close dialogs, or do they not display it for mods any more?
 
Mods have a flag quota?
It's still there on the flag dialog on a site where I'm not a mod.
 
ah okay. so they recently removed it for mods
I had built the flag/close count scraper thing previously in ReviewQueueHelper #L76, but needs to be updated if the selector changed
 
2:47 AM
Mods have never had a flag quota, but they used to show it in the pop-up flag dialog in the same place as for normal users. It was just always "100" (the maximum), and never went down. @RyanM
@HenryEcker Why do you need this? Wouldn't it make just as much, if not more, sense to attempt to raise a flag and handle the error gracefully if you are out of flags?
 
@CodyGray I'm working on a little program which makes a flagging dashboard and has one click flagging options. I just wanted to be able to display how many remaining flags I have so that I can keep track of that resource.
 
I see. You may have told me about this project before. It sounds vaguely familiar.
 
Yes the program does handle the "Out of flags" response just fine.
It was more for UI completeness than anything else
 
Heh. I am actually experiencing a userscript problem: Access to XMLHttpRequest at 'https://api.stackexchange.com/2.3/users/XXXX?&site=stackoverflow.com&sort=creation&order=desc&filter=!0QpX)x1ay6IhAe)0*WS(wn&key=XXXX' from origin 'https://chat.stackoverflow.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This attempt to hit the API used to work fine from chat, although I do have a comment in the source saying "Must be explicitly prefixed with 'https://' in order to avoid a CORS violation. Yes, even though the current protocol for the [chat] page is already 'https://'..."
I wonder if they changed or broke something.
 
3:22 AM
@HenryEcker you are welcome, I guess? I wish the API returned this info - best I can do is confirm it's no use
@CodyGray wut? the API is supposed to provide the necessary CORS headers regardless of the origin. Might be the same issue with unexpected lack of CORS headers
10
Q: Stack Exchange API inconsistently causes CORS errors for client applications after a certain number of properly throttled requests (again?)

Oleg Valter is with UkraineAfter a certain number of sequential requests made in short bursts (normally around 180 requests but I managed to get it down to 50 if the first batch of more than 180 requests succeeds) respecting the API throttle (only 10 concurrent requests with a delay of 1.1 second between each batch), the A...

^ for example
 
This just suddenly broke. It worked fine yesterday. I thought I might be rate-limited or out of quota or something, but that doesn't appear to be the case. I have no idea.
For context, what is failing is this, but that's the very first operation the script really tries to do, so there are likely other errors that would be encountered later, too.
I suppose I could convert that to use GM.xmlHttpRequest, but I really shouldn't have to, and I didn't have to before, so this is something new that just went wrong.
 
@OlegValteriswithUkraine No guessing needed. A definitive no is super helpful. At least now I can spend my time focusing on something that has a chance of working. :)
 
So true.
 
@HenryEcker ^_^ till the next rollout, that is
 
They rarely add features, so it'll likely still be true.
 
3:34 AM
@CodyGray it does not look like this is necessary (although switching to GM.* might help)
the API should always return CORS headers unless rate-limited, though
I just wonder - does switching API keys work?
 
So...maybe I'm actually rate-limited?
 
does the same full URL work when posted in the browser manually?
 
Oh, no. It doesn't.
> We're sorry...
>
> There are an unusual number of requests coming from this IP address.
>
> To protect our users, we can't process any more requests from this IP address right now.
That's a different error message than I've ever seen before.
And also quite odd, because I was away at dinner for like 2 hours before coming back and trying it... and seeing it fail.
Also weird that I get a CORS error in the console, instead of a rate-limit error.
 
well, here you go
 
I'm not going anywhere very fast
 
3:48 AM
welcome to the rate-limit :) Any accidental inifite loops lately?
 
Haven't been doing any script testing or anything. Don't have the time.
I found a more efficient way to do things than even scripts: get my clone elected as a mod.
 
@CodyGray moderating too much for SE's liking then, I see. Odd, you must've made quite a few requests to get rate-limited by the API. Usually happens when accidentally causing an infinite loop or recursion while making requests
but as you've seen from my question, you might properly throttle and still get a no-go without a warning
 
4:27 AM
What happened to vote splits? I am not able to see them on the Cooking site. I have 401 rep there, so that should be enough.
 
Oh wow
You can downvote before seeing vote splits?
When did that change?
 
See also stackapps.com/q/3082/68602 if you want to view them anyway
@CodyGray It has been that way for as long as I'm aware, though that only extends back 2-3 years.
 
@SamuelLiew I actually have that installed, which is why I thought I had the privilege. I tried turning it off, thinking that they'd done something to break the userscript, and then I was surprised to see that the site didn't even have the option for me.
So I guess I just didn't realize that the privilege was set at 1k. I thought it was 100 or something like that.
Yeah, just updated your script to the latest version, @SamuelLiew, and it isn't working on this answer. It shows the loading spinner, then just... nothing.
Although, I think that may be related to the earlier bug discussed with @Oleg, where I am apparently IP rate-limited for no discernable reason. :-|
 
4:35 AM
weird, it's working for me
 
Never mind. Being pedantic about biology on the cooking site got too hard.
Yeah, 99% sure it's rate limits.
 
it even has it's own apikey. might be another conflicting userscript
 
Yup, exact same problem as above: "No 'Access-Control-Allow-Origin' header is present on the requested resource" when it tries to call the SE API.
54 mins ago, by Cody Gray
> We're sorry...
>
> There are an unusual number of requests coming from this IP address.
>
> To protect our users, we can't process any more requests from this IP address right now.
I've never seen this specific error message before.
 
interesting... so that's an API rate limit, but you still can access the site.
 
Yup. No trouble doing anything that doesn't involve the API
 
4:42 AM
AFAIK, it is possible to be API rate-limited and not main-site
Also, interesting discussion from 2010:
5
Q: API requests are affecting access to the site itself

uɐɯsO uɐɥʇɐNThis is really annoying. I was testing a script that pulls pages from the API according to the published throttle guidelines. Then I went to StackApps to do something - and lo and behold, this is what greets me: We're sorry... There are an unusual number of requests coming from this IP address....

 
4:58 AM
Wow, that's an incredibly rude answer from staff.
> I was testing a script that pulls pages from the API according to the published throttle guidelines.
 
The comments aren't much better either
 
At least the comments begin to explain his thought process.
I would expect that at a minimum should have been in the answer to justify the aggressiveness and dismissiveness of the response.
 
Yeah. To be honest, I find the rate-limiting approach of SE to be quite annoying. I am of the "if you say X is safe, it should be safe" camp
 
I am in the "if you trust your users enough to give them moderator privileges, you should trust them enough not severely rate-limit them" camp.
I'm totally fine with rate-limiting low-rep users.
They have a lot less need for accessing the API anyway
 
The way the API currently works is "the speed limit is 60kph, but you should go somewhere around 30kph or risk being stopped by the police. Also no guarantees they will not stop you at 30kph, it depends on the phase of the moon", that's pretty damn annoying
@CodyGray well, methinks it's more of a "nobody thought to special-case you" kind of a situation
 
5:10 AM
I don't think it was a lack of thought...
This has been specifically requested multiple times
 
I can suspend Jon Skeet, but not edit a question titled "Android error Duplicate Resources".
 
You have to fix the title
 
5:42 AM
The title is fine! I mean, the lack of punctuation leaves something to be desired, but it still wouldn't let me post it even if I fixed that...
 
"Android error Duplicate Resources" is "fine"?
You must use the SE design team's definition of "fine":
 
haha...I mean, it's okay.
It gets the point across. That really is the entire error message.
rather less helpful is the part of the question that says "P.S. The UI was developed by my frnd who is an UI developer and then he mailed me the project on which I am now supposed to add code and functionality so it becomes hard for me to try and figure out what might be the possible error."
but I can't edit it without changing the title, so it's still there until I think of a longer title.
 
That does not seem like completely irrelevant or useless information
I suppose you are just trying to fix the typos?
 
It is not relevant to what has become a canonical, so I was removing it.
It could, in a new question, be a useful piece of info. Less so in a canonical.
 
I am quite confident you can think of a better title for a canonical.
> Found xxx file(s), yyy directory(ies)
Well, you tried.
 
> I solved this issue by renaming both files with different names.
That seems... less than useful.
 
Yeah, it's really not... not even the worst answer, though. You beat me to the spam one by a couple seconds :-p
 
Was it spam? I just assumed NAA
Uncomfortable with "whenever the XML detects" in this answer. I really have no idea, but I feel like XML cannot do any type of detection.
 
It was. Same uploader and display name. SD pulled the post just in the nick of time :-)
 
Haha, I see that!
 
6:02 AM
@CodyGray Correct. It's actually AAPT but I just wrote "the build tools" for simplicity and generality.
 

« first day (685 days earlier)      last day (771 days later) »