GithubHelp home page GithubHelp logo

HTTP cache? about psplustilestheme HOT 9 CLOSED

Eglin avatar Eglin commented on May 23, 2024
HTTP cache?

from psplustilestheme.

Comments (9)

MaciekBaron avatar MaciekBaron commented on May 23, 2024 1

No, that's a remote location.

Could you actually explain if you're having an issue, and if so, what is the issue you're encountering? Is that a 404?

from psplustilestheme.

MaciekBaron avatar MaciekBaron commented on May 23, 2024 1

Thanks, I'll look into it, it's likely that the URL has changed.

from psplustilestheme.

Eglin avatar Eglin commented on May 23, 2024

Hey, thanks. I just got "Search (loading)" or whatever in the searchbar indefinitely. I let it run for 15 minutes or more, but it never ended and search never became available. The alternative script finishes loading pretty quickly on the same installation. I believe I've followed your instructions to the letter and all the other changes (layout, floating headers, etc) all seem to work (nice job, that). But the critically important search feature is not working for me.

from psplustilestheme.

MaciekBaron avatar MaciekBaron commented on May 23, 2024

I think your API url might be different - I haven't had a chance to test this with a different account or locale, but if you open developer tools and look at XHR requests being made, the second one (to 'session') made will use the correct API call:

image

Could you have a look what it is in your app? You can open the dev tools with CTRL + SHIFT + i, then go to Network and click on the XHR tab.

(You might need to refresh the page so that it records the traffic again)

from psplustilestheme.

MaciekBaron avatar MaciekBaron commented on May 23, 2024

I figured out a hacky way to retrieve that URL automatically. I've updated the code - let me know if it works for you now.

from psplustilestheme.

Eglin avatar Eglin commented on May 23, 2024

Thanks very much for taking a look. I stepped through your code in the debugger and can see that the data array is being properly populated with the name/id/platform fields but then throwing an unhandled exception when trying to index into an apparently empty document.querySelectorAll(``[data-game="${id}"]``) structure.

Is it perhaps related to a 404 not found I get (even with the bone stock script shipping with the PS+ app) on startup (GET https://psnow.playstation.com/store/api/pcnow/00_09_000/container/US/en/XXXXXetc 404 - redacted because IDK if it's the URL is personal to me or not)? That error maps to something deep within vendor.js and IDK what fetches the page, but it happens between the fetch for "stores" and "psNowHome?country=blahblah." Is it possible that the data you're relying on is only present for your region?

from psplustilestheme.

MaciekBaron avatar MaciekBaron commented on May 23, 2024

Thanks for providing the extra info, this should help to figure out how to make it work for all regions. How many of those 404 errors do you get?

from psplustilestheme.

Eglin avatar Eglin commented on May 23, 2024

OK, sorry for sending you on a wild goose chase. HTML and Javascript are not in my wheelhouse and I don't learn as quickly as I used to. I should've just reported the issues and let you do the troubleshooting! Sorry.

Some of the titles (Strongbad 1,2,3) are missing the playable_platform element. These probably aren't available in your region. Temporary workaround of

tile.setAttribute('data-game-platform', playable_platform ? playable_platform.join('/') : 'PS3™');

suffices, though a better solution would probably not assume the malformed records were all for PS3 games.

Thanks for your great script. I'm glad to have it working for me now.

from psplustilestheme.

MaciekBaron avatar MaciekBaron commented on May 23, 2024

Nice one, thanks! I'll update the code to make sure it doesn't crash if that doesn't exist.

from psplustilestheme.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.