Redirect Issue

fronobulax

Developer
Staff member
The script CFStat fetches data from ColdFront. It has been broken for some time as the wiki had migrated. I was running today and the script popped up a box that said the URL had been redirected. It asked if I wanted to resend the form data to the "new" wiki. The redirect notice has a Yes button, No button and an X to close the popup. The problem I had is that when this pop up was on the screen it blocked all other interaction, including options to abort the script or Logout.

This is not good behavior :-)

An obvious solution is to rewrite the script in such a way that the resulting 403 error aborted the script and any looping script that called it.

But it seems like a mafia problem that it can get in a state where the user is frozen out of the UI. Do we add some kind of emergency abort option to blocking pop-ups like this? Something else?

Because I overthink things since this error condition generates a pop up for user interaction, what happens if someone is running headless?

Ideas or suggestions?
 
It would be nice to have a CFStat that works with the new marketplace, but I couldn't figure it out.

I couldn't get the url ColdFront redirects to to work.

It seems that PriceGun https://pricegun.loathers.net/ has much of the same data and I think CFStat 3.0 that used it would still be useful, but I have not reverse engineered the data display enough to make web scraping worthwhile. Various comments suggest PriceGun has an API but my requests for information have not been answered. Maybe I'm asking the wrong people or asking in the wrong place or maybe some long ago some antipathy lingers.
 
Various comments suggest PriceGun has an API but my requests for information have not been answered. Maybe I'm asking the wrong people or asking in the wrong place or maybe some long ago some antipathy lingers.
The pricegun API is pretty simple: https://pricegun.loathers.net/api/{itemId} returns the history data for an item. You can also pass a comma-separated list of item IDs and it'll return an array of the results.

By default you get recent sales and sales in the past two weeks bucketed daily. If you specify the query parameter history=weekly, you get long-term results bucketed weekly instead.

If you have more questions, the best place to ask is the dedicated #pricegun channel on the ASS Discord server.
 
The pricegun API is pretty simple: https://pricegun.loathers.net/api/{itemId} returns the history data for an item. You can also pass a comma-separated list of item IDs and it'll return an array of the results.

By default you get recent sales and sales in the past two weeks bucketed daily. If you specify the query parameter history=weekly, you get long-term results bucketed weekly instead.

If you have more questions, the best place to ask is the dedicated #pricegun channel on the ASS Discord server.

Thank you.

my requests for information have not been answered. Maybe I'm asking the wrong people or asking in the wrong place or maybe some long ago some antipathy lingers.

The veiled reference to animosity includes discussions about the inability to access material without a Discord account and whose problem that actually was :-)

But thank you. A CFStat update has risen to the top of my list.
 
Back
Top