Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取网络返回信息时报错 #55

Open
FlowerOda opened this issue Jan 21, 2021 · 1 comment
Open

获取网络返回信息时报错 #55

FlowerOda opened this issue Jan 21, 2021 · 1 comment

Comments

@FlowerOda
Copy link

FlowerOda commented Jan 21, 2021

def loadingFinished(**kwargs):
    print('req is ',kwargs.get('requestId'),kwargs)
    _response = tab.Network.getResponseBody(requestId=kwargs.get('requestId'))
    _response_content = _response.get('body')
    print(_response_content[:100])
tab.set_listener('Network.loadingFinished',loadingFinished)```


pychrome.exceptions.CallMethodException: calling method: Network.getResponseBody error: No resource with given identifier found
@jsjs0827
Copy link

I encounter similar problem,when I use the Fetch.requestPaused,the kwargs["requestId"] return something like interception-job-39.0,not the actual requestId.How to fix it,how to get requestId when using the Fetch.requestPaused?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants