Giter VIP home page Giter VIP logo

Comments (5)

Lissy93 avatar Lissy93 commented on May 18, 2024 1

Hiya,
Sorry about that, looks like the Docker container was using the wrong start command and the API side wasn't getting spun up like it should. I've pushed an update now (this issue was the same as #33) and so this should be fixed :)

from web-check.

t3chn0m4g3 avatar t3chn0m4g3 commented on May 18, 2024

@Lissy93 Thank you, this is resolved now.

from web-check.

t3chn0m4g3 avatar t3chn0m4g3 commented on May 18, 2024

This issue resurfaced and is not limited to Docker any longer.

On macOS and Linux the following steps can be used to reproduce the issue with docker:

Run the following commands an a supported (x64) plattform:

git clone https://github.com/Lissy93/web-check/
cd web-check
docker pull lissy93/web-check:latest
docker-compose up

Browse to web-check and and enter a domain / IP to scan. All checks will be failing.

At least in my case this is not limited to Docker and the only way to get web-check properly working is by running yarn && yarn dev as outlined in the README.

Building the release from source as outlined in the README with yarn build && yarn start or following the suggestions of yarn with ...

yarn build
yarn global add serve
serve -s build

... will result in the same scenario where web-check is served without errors but with all checks failing.

Checking the JS console we can see the following error for all checks ...

Error info (Safari):
SyntaxError: The string did not match the expected pattern.

Error Info (Other browsers):
Error info:SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON

... except:

Fetch Error - get-ip

[22:55:20] The get-ip job failed after 85ms, with the following error:
undefined is not an object (evaluating 'e.error')

While at the same time the app logs on the server seem to retrieve the string correctly:

   ┌────────────────────────────────────────────┐
   │                                            │
   │   Serving!                                 │
   │                                            │
   │   - Local:    http://localhost:3000        │
   │   - Network:  http://172.20.254.127:3000   │
   │                                            │
   └────────────────────────────────────────────┘

 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 12 ms
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /manifest.json
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 2 ms
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /static/js/main.e13d23ab.js
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /static/css/main.69716f74.css
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 5 ms
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 1 ms
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /static/css/main.69716f74.css.map
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 1 ms
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /static/js/main.e13d23ab.js.map
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 10 ms
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /web-check.png
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 1 ms
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 GET /static/media/PTMono-Regular.295a1f32faf05a5784d8.ttf
 HTTP  8/22/2023 10:48:52 PM 172.20.254.195 Returned 200 in 2 ms
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 GET /api/get-ip?url=http://172.20.254.5
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 Returned 200 in 2 ms
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 GET /api/ssl?url=http://172.20.254.5
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 GET /api/cookies?url=http://172.20.254.5
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 GET /api/robots-txt?url=http://172.20.254.5
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 Returned 200 in 2 ms
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 Returned 200 in 2 ms
 HTTP  8/22/2023 10:49:00 PM 172.20.254.195 Returned 200 in 1 ms

Running in dev reveals the checks are running and failing as expected which works in docker using yarn fine as well.

Do you have any idea what might cause the issues?
Can anyone else reproduce this as well?

from web-check.

wensley avatar wensley commented on May 18, 2024

install log
`

[email protected] start
react-scripts start

(node:25) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
(Use node --trace-deprecation ... to show where the warning was created)
(node:25) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Starting the development server...

�[0;33mOne of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it �[1mmay break at any time�[0;33m.

babel-preset-react-app is part of the create-react-app project, �[1mwhich
is not maintianed anymore�[0;33m. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.�[0m

Compiled successfully!

You can now view web-check in the browser.

Local: http://localhost:3000
On Your Network: http://172.17.0.3:3000

Note that the development build is not optimized.
To create a production build, use yarn build.

webpack compiled successfully
No issues found.
Compiling...
Compiled successfully!
webpack compiled successfully
No issues found.
`

`29 jobs failed

Finished in 12000 ms
Show Details

❌ get-ip (error). Took 1275 ms

⏸️ location (timed-out). Took 10034 ms
❌ headers (error). Took 2975 ms
❌ domain (error). Took 3112 ms
❌ dns (error). Took 2994 ms
❌ dns-server (error). Took 3111 ms
❌ tech-stack (error). Took 3010 ms
⏸️ hosts (timed-out). Took 10034 ms
❌ quality (error). Took 3010 ms
❌ cookies (error). Took 1976 ms
❌ ssl (error). Took 3010 ms
❌ redirects (error). Took 2995 ms
❌ robots-txt (error). Took 1976 ms
❌ dnssec (error). Took 3076 ms
❌ status (error). Took 3010 ms
⏸️ ports (timed-out). Took 10034 ms
❌ screenshot (error). Took 3111 ms
❌ txt-records (error). Took 2995 ms
❌ sitemap (error). Took 3010 ms
❌ hsts (error). Took 3112 ms
❌ security-txt (error). Took 3010 ms
❌ social-tags (error). Took 3102 ms
❌ linked-pages (error). Took 3112 ms
❌ mail-config (error). Took 3112 ms
❌ features (error). Took 3112 ms
❌ carbon (error). Took 2995 ms
❌ trace-route (error). Took 3112 ms
❌ firewall (error). Took 3112 ms
⏸️ http-security (timed-out). Took 10034 ms
❌ rank (error). Took 3077 ms
❌ archives (error). Took 3102 ms
❌ block-lists (error). Took 3112 ms
❌ threats (error). Took 3102 msCheck the browser console for logs and more info
It's normal for some jobs to fail, either because the host doesn't return the required info, or restrictions in the lambda function, or hitting an API limit.`

`Application Error

u@https://jsonhero.io/build/_shared/chunk-LYGVB3WT.js:1:148
S/<@https://jsonhero.io/build/_shared/chunk-LYGVB3WT.js:1:407
Gf@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:9:6560
ho</L.unstable_runWithPriority@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:1:4026
rn@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:5:38448
Xe@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:9:6029
yi@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:7:10750
ra</Cs/<@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:5:38670
ho</L.unstable_runWithPriority@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:1:4026
rn@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:5:38448
Cs@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:5:38618
ge@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:5:38551
Gs@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:7:11365
Jr@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:9:17406
ra</se.hydrate@https://jsonhero.io/build/_shared/chunk-PZ2Z7HGX.js:9:19885`

i use docker run,have same issues.

from web-check.

t3chn0m4g3 avatar t3chn0m4g3 commented on May 18, 2024

@Lissy93 Awesome! Thank you 😊

from web-check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.