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

All of the checks are failing when not running in dev #11

Closed
t3chn0m4g3 opened this issue Jul 24, 2023 · 5 comments
Closed

All of the checks are failing when not running in dev #11

t3chn0m4g3 opened this issue Jul 24, 2023 · 5 comments

Comments

@t3chn0m4g3
Copy link
Contributor

t3chn0m4g3 commented Jul 24, 2023

When running the docker images, either from DockerHub or a local build I get the following errors ...

❌ get-ip (error). Took 56 ms↻ Retry■ Show Error
⏸️ location (timed-out). Took 10841 ms
❌ headers (error). Took 71 ms↻ Retry■ Show Error
❌ domain (error). Took 99 ms↻ Retry■ Show Error
❌ dns (error). Took 67 ms↻ Retry■ Show Error
❌ dns-server (error). Took 99 ms↻ Retry■ Show Error
❌ tech-stack (error). Took 93 ms↻ Retry■ Show Error
⏸️ hosts (timed-out). Took 10841 ms
❌ quality (error). Took 71 ms↻ Retry■ Show Error
✅ cookies (success). Took 71 ms
❌ redirects (error). Took 88 ms↻ Retry■ Show Error
✅ robots-txt (success). Took 77 ms
❌ dnssec (error). Took 99 ms↻ Retry■ Show Error
❌ status (error). Took 88 ms↻ Retry■ Show Error
⏸️ ports (timed-out). Took 10841 ms
❌ screenshot (error). Took 98 ms↻ Retry■ Show Error
❌ txt-records (error). Took 88 ms↻ Retry■ Show Error
❌ sitemap (error). Took 98 ms↻ Retry■ Show Error
❌ hsts (error). Took 98 ms↻ Retry■ Show Error
❌ features (error). Took 99 ms↻ Retry■ Show Error
❌ carbon (error). Took 93 ms↻ Retry■ Show Error
❌ trace-route (error). Took 93 ms↻ Retry■ Show Error

... while your instance on https://web-check.xyz/ runs just fine.

When starting via docker-compose I am getting the following log and errors:

Web-Check  |
Web-Check  | > web-check@1.0.0 start
Web-Check  | > react-scripts start
Web-Check  |
Web-Check  | (node:26) [DEP_WEBPACK_DEV_SERVER_ON_AFTER_SETUP_MIDDLEWARE] DeprecationWarning: 'onAfterSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Web-Check  | (Use `node --trace-deprecation ...` to show where the warning was created)
Web-Check  | (node:26) [DEP_WEBPACK_DEV_SERVER_ON_BEFORE_SETUP_MIDDLEWARE] DeprecationWarning: 'onBeforeSetupMiddleware' option is deprecated. Please use the 'setupMiddlewares' option.
Web-Check  | Starting the development server...
Web-Check  |
Web-Check  | One of your dependencies, babel-preset-react-app, is importing the
Web-Check  | "@babel/plugin-proposal-private-property-in-object" package without
Web-Check  | declaring it in its dependencies. This is currently working because
Web-Check  | "@babel/plugin-proposal-private-property-in-object" is already in your
Web-Check  | node_modules folder for unrelated reasons, but it may break at any time.
Web-Check  |
Web-Check  | babel-preset-react-app is part of the create-react-app project, which
Web-Check  | is not maintianed anymore. It is thus unlikely that this bug will
Web-Check  | ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
Web-Check  | your devDependencies to work around this error. This will make this message
Web-Check  | go away.
Web-Check  |
Web-Check  | Compiled with warnings.
Web-Check  |
Web-Check  | [eslint]
Web-Check  | src/components/Form/Modal.tsx
Web-Check  |   Line 74:6:  React Hook React.useEffect has a missing dependency: 'handleEscPress'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/components/misc/FancyBackground.tsx
Web-Check  |   Line 338:6:  React Hook useEffect has a missing dependency: 'App'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/pages/Home.tsx
Web-Check  |   Line 41:7:   'FindIpButton' is assigned a value but never used   @typescript-eslint/no-unused-vars
Web-Check  |   Line 124:9:  'findIpAddress' is assigned a value but never used  @typescript-eslint/no-unused-vars
Web-Check  |
Web-Check  | src/pages/Results.tsx
Web-Check  |   Line 151:6:  React Hook useCallback has a missing dependency: 'startTime'. Either include it or remove the dependency array                                   react-hooks/exhaustive-deps
Web-Check  |   Line 173:6:  React Hook useEffect has missing dependencies: 'address', 'addressType', and 'setIpAddress'. Either include them or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/utils/docs.ts
Web-Check  |   Line 264:26:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |   Line 291:43:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |
Web-Check  | Search for the keywords to learn more about each warning.
Web-Check  | To ignore, add // eslint-disable-next-line to the line before.
Web-Check  |
Web-Check  | WARNING in [eslint]
Web-Check  | src/components/Form/Modal.tsx
Web-Check  |   Line 74:6:  React Hook React.useEffect has a missing dependency: 'handleEscPress'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/components/misc/FancyBackground.tsx
Web-Check  |   Line 338:6:  React Hook useEffect has a missing dependency: 'App'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/pages/Home.tsx
Web-Check  |   Line 41:7:   'FindIpButton' is assigned a value but never used   @typescript-eslint/no-unused-vars
Web-Check  |   Line 124:9:  'findIpAddress' is assigned a value but never used  @typescript-eslint/no-unused-vars
Web-Check  |
Web-Check  | src/pages/Results.tsx
Web-Check  |   Line 151:6:  React Hook useCallback has a missing dependency: 'startTime'. Either include it or remove the dependency array                                   react-hooks/exhaustive-deps
Web-Check  |   Line 173:6:  React Hook useEffect has missing dependencies: 'address', 'addressType', and 'setIpAddress'. Either include them or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/utils/docs.ts
Web-Check  |   Line 264:26:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |   Line 291:43:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |
Web-Check  | webpack compiled with 1 warning
Web-Check  | No issues found.
Web-Check  | Compiling...
Web-Check  | Compiled with warnings.
Web-Check  |
Web-Check  | [eslint]
Web-Check  | src/components/Form/Modal.tsx
Web-Check  |   Line 74:6:  React Hook React.useEffect has a missing dependency: 'handleEscPress'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/components/misc/FancyBackground.tsx
Web-Check  |   Line 338:6:  React Hook useEffect has a missing dependency: 'App'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/pages/Home.tsx
Web-Check  |   Line 41:7:   'FindIpButton' is assigned a value but never used   @typescript-eslint/no-unused-vars
Web-Check  |   Line 124:9:  'findIpAddress' is assigned a value but never used  @typescript-eslint/no-unused-vars
Web-Check  |
Web-Check  | src/pages/Results.tsx
Web-Check  |   Line 151:6:  React Hook useCallback has a missing dependency: 'startTime'. Either include it or remove the dependency array                                   react-hooks/exhaustive-deps
Web-Check  |   Line 173:6:  React Hook useEffect has missing dependencies: 'address', 'addressType', and 'setIpAddress'. Either include them or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/utils/docs.ts
Web-Check  |   Line 264:26:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |   Line 291:43:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |
Web-Check  | Search for the keywords to learn more about each warning.
Web-Check  | To ignore, add // eslint-disable-next-line to the line before.
Web-Check  |
Web-Check  | WARNING in [eslint]
Web-Check  | src/components/Form/Modal.tsx
Web-Check  |   Line 74:6:  React Hook React.useEffect has a missing dependency: 'handleEscPress'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/components/misc/FancyBackground.tsx
Web-Check  |   Line 338:6:  React Hook useEffect has a missing dependency: 'App'. Either include it or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/pages/Home.tsx
Web-Check  |   Line 41:7:   'FindIpButton' is assigned a value but never used   @typescript-eslint/no-unused-vars
Web-Check  |   Line 124:9:  'findIpAddress' is assigned a value but never used  @typescript-eslint/no-unused-vars
Web-Check  |
Web-Check  | src/pages/Results.tsx
Web-Check  |   Line 151:6:  React Hook useCallback has a missing dependency: 'startTime'. Either include it or remove the dependency array                                   react-hooks/exhaustive-deps
Web-Check  |   Line 173:6:  React Hook useEffect has missing dependencies: 'address', 'addressType', and 'setIpAddress'. Either include them or remove the dependency array  react-hooks/exhaustive-deps
Web-Check  |
Web-Check  | src/utils/docs.ts
Web-Check  |   Line 264:26:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |   Line 291:43:  Unnecessary escape character: \'  no-useless-escape
Web-Check  |
Web-Check  | webpack compiled with 1 warning
Web-Check  | No issues found.```

Most likely I am missing something 😅

Running `yarn dev` without Docker works fine, though 🤔
@t3chn0m4g3 t3chn0m4g3 changed the title Most of the checks are failing Docker: Most of the checks are failing Jul 24, 2023
@t3chn0m4g3
Copy link
Contributor Author

@Lissy93 Thank you, this is resolved now.

@t3chn0m4g3
Copy link
Contributor Author

t3chn0m4g3 commented Aug 22, 2023

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?

@t3chn0m4g3 t3chn0m4g3 reopened this Aug 22, 2023
@t3chn0m4g3 t3chn0m4g3 changed the title Docker: Most of the checks are failing All of the checks are failing when not running in dev Aug 22, 2023
@wensley
Copy link

wensley commented Aug 25, 2023

install log
`

web-check@1.0.0 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.

@Lissy93
Copy link
Owner

Lissy93 commented Aug 26, 2023

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 :)

@Lissy93 Lissy93 closed this as completed Aug 26, 2023
@t3chn0m4g3
Copy link
Contributor Author

@Lissy93 Awesome! Thank you 😊

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

3 participants