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

Not working when API url has/multiple/parts/divided/by/slash #7

Open
glaggia-larus opened this issue Nov 2, 2020 · 1 comment
Open

Comments

@glaggia-larus
Copy link

glaggia-larus commented Nov 2, 2020

As in the title, I'm having some issues with the table, the situation is this:

when api-url is http://localhost:8080/agent the call the table make is to this endpoint: http://localhost:8080/agent?sort=name&order=asc&page=1&per_page=10 and everything goes smooth.

if I use as api-url this: http://localhost:8080/agent/table the call the table make is to this endpoint: http://localhost:8080/agent/table?sort=name&order=asc&page=1&per_page=10 as expected, but this fails, in the developer console I can see that Chrome shows it as "failed to load response data"

But if I open a new chrome window and copy-paste the Request URL called my backend answer correctly. I can't understand the reason.

At last, I tried a @GetMapper("agenttable") and everything went smooth, it seems the problem is with the two/part URL.

@mannyyang
Copy link
Owner

Hmm that's strange, any chance you can share the issue you're facing in a codesandbox?

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