question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"visit" API call looks to access the url twice

See original GitHub issue

Hi,

I started a django dev server, and accessed the top page of the server using by django shell:

from splinter.browser import Browser
browser = Browser('phantomjs')
browser.visit('http://localhost:8080/')

server log is:

[04/Jul/2013 20:31:44] "GET / HTTP/1.1" 200 0
[04/Jul/2013 20:31:44] "GET / HTTP/1.1" 200 0

Why did the “visit” method call access the page twice? It looks bit strange to me.

thanks.

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:30 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
hltbracommented, Oct 22, 2014

We could even default to not fetch, and if status_code is retrieved and the option is not passed in correctly, we could throw an AssertionError and inform that if status_code is used, you need to pass fetch_status_code.

0reactions
andrewsmedinacommented, May 2, 2018

after the https://github.com/cobrateam/splinter/commit/2e5135460610149a1082b2aaca61fffc10beae40 in 0.8 the drivers based on webdriver will raise NotImplementedError in status_code

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why API is calling twice? [duplicate] - Stack Overflow
I'm using axios whenever I call API it would be called twice as I see in network in chrome devtools in the devtool...
Read more >
When I am calling rest api it is calling twice for every request
When I am calling rest api it is calling twice for every request ; string Url, object data, Method method,Hashtable htable) { var...
Read more >
Go API receive calls twice when hit through browser
In browser I receive "Hello" which is correct; In golang console prompt I get this log twice: With TLS: Capture.PNG Without TLS: Capture.PNG...
Read more >
API calls only once, but wont seem to call the service twice
API URL built into a variable in the code block. So I know the URL is changing as expected. I have logs of...
Read more >
Safe Link protection trigger the actual API twice.
The decoded (through https://www.o365atp.com/) URL got triggered at once. Safelink causing the problem to get expired page. Solutions we did ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found