Giter Site home page Giter Site logo

Comments (6)

fluorescentoast avatar fluorescentoast commented on June 5, 2024

I suspect your issue is with your deployed docker container and not the hardcoded values. I ran into a similar problem.

Does the docker container run locally as expected?

from tiktok-signature.

foxt451 avatar foxt451 commented on June 5, 2024

@fluorescentoast Hi, thanks for reply! I build it with --platform linux/amd64, and when I run it locally with the same --platform linux/amd64 I can't reproduce the exact error that happened remotely on the platform, but it still doesn't work (for another reason, navigation times out). If i remove --platform flag locally (I'm on Mac M1) it runs somewhat fine, navigation times out just in some cases. On remote platform (which runs Ubuntu) navigations never time out, I just get empty API responses.

You've faced a similar problem, did you manage to solve it?

I see that the problem is with docker container, but I guess it would be much easier to know how to modify user-agent value to Ubuntu

from tiktok-signature.

fluorescentoast avatar fluorescentoast commented on June 5, 2024

What region is your platform hosted on? could be a similar issue to #172

from tiktok-signature.

foxt451 avatar foxt451 commented on June 5, 2024

@fluorescentoast Hmm, I doubt it. I used US proxy locally and non-US proxy on platform and locally, and the result was the same (worked locally, didn't work on platform). I guess I'll try to run the scraper in some ubuntu virtual machine to see if it's problem with linux or with platform specifically

from tiktok-signature.

foxt451 avatar foxt451 commented on June 5, 2024

Ok, so I've finally got my hands to run it on my Ubuntu machine. And it works, which means it's not a linux issue

from tiktok-signature.

foxt451 avatar foxt451 commented on June 5, 2024

Oh, so now I tried to run the same axios request (i.e. with same headers and all) locally, and it works... Which points that the problem is not with playwright but with the last request. Very strange. Will try using simple fetch. Maybe it's indeed IP address thing, but that's strange, since proxies are the same

UPD: turns out I forgot to add proxy to axios request

from tiktok-signature.

Related Issues (20)

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.