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

Could not find table 'webcloners' and Invalid JSON input passed to endpoint /api/seng/clone_page #2010

Closed
fa1c0n1 opened this issue Nov 7, 2020 · 8 comments · Fixed by #2127

Comments

@fa1c0n1
Copy link

fa1c0n1 commented Nov 7, 2020

When I clone a website by BeEF, it alerts an error as screenshot shown as below.
How to solve this problem??
curl -H "Content-Type: application/json; charset=UTF-8" -d '{"url":"https://www.baidu.com", "mount":"/baidu"}' -X POST 'http://192.168.166.176:3000/api/seng/clone_page?token=912e3124ee5057b76ce1144b2e14d4aa9e8a2499'
image

@andyita
Copy link

andyita commented Jan 16, 2021

I'm having the same "Invalid JSON input passed to endpoint /api/seng/clone_page" error. Any idea on how to solve?

1 similar comment
@york-cmd
Copy link

I'm having the same "Invalid JSON input passed to endpoint /api/seng/clone_page" error. Any idea on how to solve?

@violentr
Copy link

Same issue here, Invalid JSON input passed to endpoint /api/seng/clone_page

curl -H "Content-Type: application/json; charset=UTF-8" \
-X POST http://127.0.0.1:3000/api/seng/clone_page?token=$beef_rest_api_token \
-d '{"url":"https://somesite.com","mount":"/somesite"}'

@wheatley
Copy link
Collaborator

wheatley commented Jun 25, 2021

hi @fa1c0n1, @violentr & @andyita
was able to replicate your issues and looked into the root cause of what was happening.

it looks likes the logic around persisting the cloned page is erroring out.
I've gone and found the code that is throwing the error and have produced a solution.
I'll raise a pull request and look into resolving this for you.

@ma1ware07
Copy link

Any updates on this? Been encountering this issue as well.

@wheatley
Copy link
Collaborator

wheatley commented Jul 5, 2021

hey ma1ware07, will have this resolved by the end of the week and update this issue for everyone

@wheatley
Copy link
Collaborator

just letting everyone know that's watching this issue, just finishing up some tests and will be creating a pull request

@wheatley
Copy link
Collaborator

@ma1ware07 pull request has been request to address this issue.

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

Successfully merging a pull request may close this issue.

8 participants