Git Product home page Git Product logo

Comments (5)

Sonnenheim avatar Sonnenheim commented on September 2, 2024

I can confirm the issue.

from bl3auto.

squatto avatar squatto commented on September 2, 2024

The API endpoint that is being hit for the login is throwing a 500 Internal Server Error, which is why the login request is coming back as a failure

from bl3auto.

jauderho avatar jauderho commented on September 2, 2024

Config is here: https://github.com/jauderho/bl3auto/blob/main/config.json

{
    "version": "2.2.26",
    "loginUrl": "https://api.2k.com/borderlands/users/authenticate",
    "loginRedirectHeader": "X-CT-REDIRECT",
    "sessionIdHeader": "X-SESSION-SET",
    "sessionHeader": "X-SESSION",
    "requestHeaders": {
        "Origin": "https://borderlands.com",
        "Referer": "https://borderlands.com/en-US/"
    },
    "shiftConfig": {
        "codeListUrl": "https://shift.orcicorn.com/shift-code/index.json",
        "codeInfoUrl": "https://api.2k.com/borderlands/code/",
        "userInfoUrl": "https://api.2k.com/borderlands/users/me",
        "gameCodename": "oak"
    }
}

If someone can figure out the change in API and submits a PR, I'll accept it. I'm swamped for time right now so I do not have cycles to look further into this for a while.

It may not make much of a difference as the feed for updated SHiFT codes has not been updated since 4/2023. So I suppose someone will have to step up to create a feed to scrape and populate with updated codes.

from bl3auto.

Tythesly avatar Tythesly commented on September 2, 2024

Hope somebody can figure this out

from bl3auto.

bmfrosty avatar bmfrosty commented on September 2, 2024

I'm not a developer, but I did inspect it. It's now going to https://shift.gearboxsoftware.com/sessions - and copied it as cURL.

curl 'https://shift.gearboxsoftware.com/sessions' \
  -H 'authority: shift.gearboxsoftware.com' \
  -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/x-www-form-urlencoded' \
  -H 'cookie: update_offer=2; _session_id=e5ed48e5d6461576979b5976ca4d855c' \
  -H 'dnt: 1' \
  -H 'origin: https://shift.gearboxsoftware.com' \
  -H 'pragma: no-cache' \
  -H 'referer: https://shift.gearboxsoftware.com/home' \
  -H 'sec-ch-ua: "Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: document' \
  -H 'sec-fetch-mode: navigate' \
  -H 'sec-fetch-site: same-origin' \
  -H 'sec-fetch-user: ?1' \
  -H 'upgrade-insecure-requests: 1' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36' \
  --data-raw 'utf8=%E2%9C%93&authenticity_token=9hWkBhL9gfF2QRVhg1FLXl%2Fusdfg5anwfjvrvulHxcXENxLNuc9%2Fd8i22sT5oMvH9xIH9FcOVHbfMgYPmozfgw%3D%3D&user%5Bemail%[email protected]&user%5Bpassword%5D=Password&commit=SIGN+IN' \
  --compressed

from bl3auto.

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.