"Snyk failed to scan your project. An error occurred. Could not detect supported target files in"
Loading
"Snyk failed to scan your project. An error occurred. Could not detect supported target files in"
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajkiran SwainPosted Mar 30, 2023, 6:29 AM
The reason for Snyk failing to scan your project and showing the error message "Snyk failed to scan your project. An error occurred. Could not detect supported target files in" could be one of the following:
Unsupported project type: Snyk supports a range of programming languages and project types, but there may be some that are not yet supported. If your project is of an unsupported type, Snyk will not be able to scan it.
Incorrect path or file type: Snyk may not be able to scan your project if the path or file type is incorrect. Make sure that the correct path to your project is specified and that you are using the correct file type.
Network or connectivity issues: Snyk may fail to scan your project if there are network or connectivity issues. Make sure that you have a stable internet connection and that there are no firewalls or proxies blocking the scan.
Dependency issues: Snyk may not be able to scan your project if there are issues with dependencies or if the dependencies are not properly installed. Check that all the required dependencies are installed and up to date.
To resolve the issue, you can try the following:
Check the Snyk documentation to ensure that your project is supported.
Double-check the path and file type to ensure that they are correct.
Check your network and connectivity settings to ensure that they are working properly.
Check your project's dependencies and ensure that they are properly installed and up to date.
Amit MohantyPosted Mar 30, 2023, 6:54 AM
Some common reasons why Snyk failing to scan your project:
Missing or incorrect file paths: Ensure that your project files are located in the correct directories and that Snyk has access to them.
Unsupported file types: Make sure that the files you are trying to scan are supported by Snyk. Snyk supports a wide range of programming languages and file types, but not all are supported.
Incorrect file extensions: Ensure that your files have the correct extensions and that they are named correctly. For example, if you are scanning a Node.js project, ensure that your package.json file is named correctly and located in the correct directory.
Corrupted or incomplete files: Check that your files are not corrupted or incomplete. This can happen if files were not saved or uploaded correctly, or if they were edited in a way that caused errors.