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.

Unable to Stop AB Testing

See original GitHub issue

The tutorial states:

To stop the A/B test, please open address http://127.0.0.1:8000/api/v1/stop_ab_test/1 where 1 at the end of the address it the A/B test id. Click on POST button to finish A/B test.

When I go to this URL I get:

HTTP 405 Method Not Allowed
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "detail": "Method \"GET\" not allowed."
}

Which makes sense as we set this up as POST request endpoint. If I leave the other fields empty/default on that page that loads and click on the “POST” button I get this error on the page:

HTTP 400 Bad Request
Allow: POST, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "status": "Error",
    "message": "float division by zero"
}

And this error in the console where I started the server:

D:\source2\repos\my_ml_service\venv\lib\site-packages\django\db\models\fields\__init__.py:1418: RuntimeWarning: DateTimeField MLRequest.created_at received a naive datetime (2020-08-16 12:18:52.567774) while time zone support is active.
  warnings.warn("DateTimeField %s received a naive datetime (%s)"
Bad Request: /api/v1/stop_ab_test/1
[16/Aug/2020 12:18:52] "POST /api/v1/stop_ab_test/1 HTTP/1.1" 400 10160

I am not sure what/where to make any updates to this.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ahsin-scommented, Oct 28, 2020

Absolutely! 😃

0reactions
pplonskicommented, Oct 27, 2020

Thank you @Ih8Coding4fun! Could you please create a PR with a fix? and maybe some tests?

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 Reasons Your A/B test fails (and how not to) - VWO
The key is to test a variation exhaustively. Don't let results be sabotaged by environmental factors, different times of the day, different days ......
Read more >
The Three (or Four) Safeguards to Stopping an AB Test
In AB testing, everyone talks about this best practice of ensuring tests reach 95% statistical significance before declaring a winner.
Read more >
There are no failed A/B tests: How to ensure experiments yield ...
A test only “fails” if it is not set up properly, yielding unreliable or unreadable results. If you suspect your test is impacting...
Read more >
How Not To Run an A/B Test - Evan Miller
If you run experiments: the best way to avoid repeated significance testing errors is to not test significance repeatedly. Decide on a sample ......
Read more >
What to Do When Your A/B Test Doesn't Win - Rich Page
A common reason for poor A/B test results is because the idea (the hypothesis for what was tested) was not very good. This...
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