Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

How deploy this project on Vercel #135

Open
win4r opened this issue Jun 30, 2023 · 1 comment
Open

How deploy this project on Vercel #135

win4r opened this issue Jun 30, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@win4r
Copy link

win4r commented Jun 30, 2023

What role does this piece of code play in poe.py? Will there be any errors if I delete this code? Because I want to deploy this project on Vercel, but this code needs to write files locally, which leads to its incorrect execution on Vercel.

` if self.device_id is None:
self.device_id = self.get_device_id()

self.gql_headers = {
  "poe-formkey": self.formkey,
  "poe-tchannel": self.channel["channel"],
}
self.gql_headers = {**self.gql_headers, **self.headers}
self.subscribe()

`

@ading2210
Copy link
Owner

A patch to prevent writing to the filesystem shouldn't be too hard. However, the device ID would have to be randomized each time, which could increase the chances of a ban.

@ading2210 ading2210 added the bug Something isn't working label Jul 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants