Skip to content

Splash doesn't render React single-page application #1182

@Azaze1l

Description

@Azaze1l

Hey!

I'm trying to render this https://app.adapty.io/login page but facing some strange behavior. I'm getting a blank white page as a response:

Screenshot 2023-08-18 at 15 19 22

My lua function:

function main(splash, args)
  splash.private_mode_enabled = false
  splash:set_viewport_full()
  splash:set_user_agent('Mozilla/5.0 (Windows NT 6.1; rv:51.0) Gecko/20100101 Firefox/51.0')
  assert(splash:go(args.url))
  assert(splash:wait(60))
  return {
    html = splash:html(),
    png = splash:png(),
    har = splash:har(),
  }
end

After doing some research I've found some interesting related to my problem reports:
React website showing a blank white page and no content

Scrapy-splash not rendering dynamic content from a certain react-driven site

But there is still no context here.

Should I keep trying to use Splash as a rendering service or it can be a better option to use something different?
Does anyone have a guess why this happens with React apps?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions