jfrog / jfrog-vscode-extension

JFrog VS-Code Extension
https://jfrog.github.io/jfrog-vscode-extension
Apache License 2.0
189 stars 32 forks source link

Jfrog Visual Studio Code not scanning Libraries #99

Closed bhupi-cloudeq closed 3 years ago

bhupi-cloudeq commented 3 years ago

I have added Jfrog extension in VSCode and connected with Jfrog Instance. When I start scanning it starts scanning then shows 404 error.

ScreenShot attached

image

image

yahavi commented 3 years ago

@bhupi-cloudeq, Thanks for reporting this issue. Could you please share the extension's logs? You can see them by clicking on the "JFrog" button:

image
bhupi-cloudeq commented 3 years ago

Thanks for early reply Below are the logs

[INFO - 5:55:05 pm] Starting slow scan [INFO - 5:55:05 pm] Locating go.mod files in workspace "ceq-webapi-core". [DEBUG - 5:55:06 pm] No go.mod files found in workspaces. [INFO - 5:55:06 pm] Locating package json files in workspace "ceq-webapi-core". [DEBUG - 5:55:06 pm] No package.json files found in workspaces. [INFO - 5:55:06 pm] Locating python files in workspace "ceq-webapi-core". [DEBUG - 5:55:07 pm] No setup.py and requirements files found in workspace ceq-webapi-core. [INFO - 5:55:07 pm] Locating pom.xml files in workspace "ceq-webapi-core". [DEBUG - 5:55:07 pm] No pom.xml files found in workspaces. [INFO - 5:55:07 pm] Locating *.sln files in workspace "ceq-webapi-core". [DEBUG - 5:55:07 pm] Solution files to scan: [[file:///d%3A/Practice-git/ceq-webapi-core/ceq-webapi-core.sln]]

yahavi commented 3 years ago

Thanks, @bhupi-cloudeq. Could you please try to disconnect and reconnect? While doing so, please look at the logs. Make sure the platform URL is accessible for browsing.

image

Additionally, you can check the Xray URL printed in the logs by running the following curl command and make sure you get a list of issues and licenses for a Go package:

curl -XPOST https://<jfrog-platform>/xray/api/v1/summary/component -u<user>:<password> -H "Content-Type: application/json" --data '{"component_details": [{"component_id": "go://github.com/containous/traefik:1.7.0"}]}'

Please let me know if it helped.

bhupi-cloudeq commented 3 years ago

Logs are same but reconnecting worked ,I did it earlier also ,but this time reconnecting worked

image

yahavi commented 3 years ago

@bhupi-cloudeq I'm glad to hear it works now. It sounds like your Xray instance wasn't available for some reason.

Please let us know if you encounter this issue again in the future.