Dniel97 / orpheusdl-beatport

An OrpheusDL Beatport module
36 stars 12 forks source link

ConnectionError: {"detail":"CSRF Failed: Referer checking failed - no Referer."} #22

Open meowingtons0808 opened 2 days ago

meowingtons0808 commented 2 days ago

Traceback (most recent call last): File "/Users//KKKK/orpheusdl/orpheus.py", line 224, in main() File "/Users//KKKK/orpheusdl/orpheus.py", line 179, in main module = orpheus.load_module(service_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users//KKKK/orpheusdl/orpheus/core.py", line 224, in load_module loaded_module.login(settings['email'] if 'email' in settings else settings['username'], settings['password']) File "/Users//KKKK/orpheusdl/modules/beatport/interface.py", line 78, in login login_data = self.session.auth(username, password) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/____/KKKK/orpheusdl/modules/beatport/beatport_api.py", line 55, in auth raise ConnectionError(r.text)

how i can fix this?

SquashingBugs commented 2 days ago

Can confirm: temp

meowingtons0808 commented 2 days ago

same bro

tomtom2430 commented 1 day ago

I'm getting the same error, maybe beatport updated something on their system?

Dniel97 commented 1 day ago

@tomtom2430, @meowingtons0808, @SquashingBugs Can you try the latest develop commit and tell me if that fixed it?

tomtom2430 commented 1 day ago

@tomtom2430, @meowingtons0808, @SquashingBugs Can you try the latest develop commit and tell me if that fixed it?

I'm sorry but it's still not working, updated the interface.py / beatport_api.py and now I get a longer error:

" _
/ __ \
__ \ _ _ __ __ '__ '_ \ ' \ / \ / __ __ _) __/ _ __ \ __ \/ _ .__/ _ _ ___ _, _/___/ __
_

Beatport: Professional subscription detected, allowing high and lossless quality Beatport: Professional subscription detected, allowing high and lossless quality Logging into Beatport Traceback (most recent call last): File "/Users/--/OrpheusDL/orpheus.py", line 225, in main()


  File "/Users/--/OrpheusDL/orpheus.py", line 180, in main
    module = orpheus.load_module(service_name)
  File "/Users/--/OrpheusDL/orpheus/core.py", line 224, in load_module
    loaded_module.login(settings['email'] if 'email' in settings else settings['username'], settings['password'])
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/---/OrpheusDL/modules/beatport/interface.py", line 78, in login
    login_data = self.session.auth(email, password)
  File "/Users/---/OrpheusDL/modules/beatport/beatport_api.py", line 40, in auth
    r = self.s.get(f"{self.API_URL}auth/o/authorize/", params={
        "client_id": self.client_id,
        "response_type": "code",
        "redirect_uri": self.redirect_uri,
    }, headers=acc_headers)
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 724, in send
    history = [resp for resp in gen]
                                ^^^
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 265, in resolve_redirects
    resp = self.send(
        req,
    ...<6 lines>...
        **adapter_kwargs,
    )
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 697, in send
    adapter = self.get_adapter(url=request.url)
  File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/requests/sessions.py", line 792, in get_adapter
    raise InvalidSchema(f"No connection adapters were found for {url!r}")
requests.exceptions.InvalidSchema: No connection adapters were found for 'seratodjlite://beatport?code=XxSIQ7Uyb38KrqEOWzU5Vf0iv9yqpL'
meowingtons0808 commented 1 day ago

maybe beatport watching you