Closed kate-mashkina closed 2 years ago
I got it working, however, I have my code based on the error message that the api sends back when you ask for a non existent page. The error message looks like this:
Trial count mismatch from the API
This works for any page up to page 2000, however, after page 2000 like page 2001 or 3000 or whichever (http://localhost:3000/lung-cancer?cfg=0&pn=2001) I receive this:
POST http://localhost:3000/cts/proxy-api/v2/trials 400 (Bad Request)
So it seems like the API doesn't handle requests well past that 2000 page request. Should I change my implementation of the noTrials redirect or is this something that should be fixed on the API's end?
@kate-mashkina
@kate-mashkina, @sarinapadilla, Verified the following for MLP, DLP (Disease and Intervention):
@sarinapadilla , Noticed that for pn> 2000, react displays the following error for DLP. Prod also displays the same error for pn>2000 but the title and delighter is not displayed in Prod but is displayed in React.
For MLP, the React gives the following error for pn>2000:
But Prod gives different error for pn>2000:
This issue was fixed by #144 , so closing this ticket.
Issue description
Description of the issue
When Api returns an empty trials array it should redirect to noTrials- currently App just breaks
The fix needs to include Acceptance Test
Steps to reproduce the issue
What's the expected result?
-it should navigate to /notrials?p1=breast-cancer
What's the actual result?
Additional details / screenshot
Related Tickets