c6fc / npk

A mostly-serverless distributed hash cracking platform
508 stars 59 forks source link

Unable to parse response as json #80

Closed Luct0r closed 1 year ago

Luct0r commented 1 year ago

Having the same problem from https://github.com/Coalfire-Research/npk/issues/4

New install, tried Chrome and Firefox, and the campaign does not get created after the error. Also same thing where the response is blank.

I went in to check out the Lambda logs like you mentioned in that issue, but I don't see the "proxy_api_handler" function? Any thoughts?

Thanks!

c6fc commented 1 year ago

Don't use the coalfire-research one. It's massively outdated. Use the one-liner from this repo to deploy.

Luct0r commented 1 year ago

̶H̶m̶m̶ ̶I̶'̶m̶ ̶f̶a̶i̶r̶l̶y̶ ̶c̶o̶n̶f̶i̶d̶e̶n̶t̶ ̶I̶ ̶d̶i̶d̶.̶.̶.̶b̶u̶t̶ ̶l̶e̶t̶'̶s̶ ̶j̶u̶s̶t̶ ̶a̶s̶s̶u̶m̶e̶ ̶I̶ ̶w̶a̶s̶ ̶a̶n̶ ̶i̶d̶i̶o̶t̶ ̶a̶n̶d̶ ̶u̶s̶e̶d̶ ̶t̶h̶e̶ ̶o̶n̶e̶ ̶f̶r̶o̶m̶ ̶C̶F̶ ̶r̶e̶p̶o̶.̶ ̶D̶o̶ ̶I̶ ̶h̶a̶v̶e̶ ̶t̶o̶ ̶d̶o̶ ̶a̶ ̶f̶u̶l̶l̶ ̶t̶e̶a̶r̶ ̶d̶o̶w̶n̶ ̶o̶r̶?̶

I'm positive I used the one liner from this repo, since just as a sanity check I went to the CF repo and there is no one liner if that makes sense?

Luct0r commented 1 year ago

I mentioned that issue since it's what came up when googling the error.

c6fc commented 1 year ago

delete it and install the one from this repo

c6fc commented 1 year ago

If you're certain that you installed the version from this repo, check the Cloudwatch logs for the create_campaign lambda function for the error, and paste it here

Luct0r commented 1 year ago

Hmm okay looks like it was something in my npk-settings.json, I reduced the campaign_max_price and the campaign_data_ttl, and added SSO.

Left SSO, removed the other two and it's fine....oh could it be putting quotes around the campaign_data_ttl value?

Luct0r commented 1 year ago

Well don't be an idiot I guess and put quotes around a number/int value.... Sorry for the trouble