fraggle

Cadet 1st Class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-06-07
11:58
7512 views
Running a scan from the REST API
Hello,
I'm having an issue when I try to run a scan from the REST API in WebInspect (aka WI) 17.10:
The command is
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ "settingsName": "Default" \ }' 'http://localhost:8083/webinspect/scanner/scans'
Where settingName is the name of an existing setting.
And WI is returning:
{ "Message": "An error has occurred.", "ExceptionMessage": "Cannot open database \"webinspect\" requested by the login. The login failed.\r\nLogin failed for user 'NT AUTHORITY\\SYSTEM'.", "ExceptionType": "System.Data.SqlClient.SqlException", "StackTrace": "" }
in an HTTP error 500.
Inside the WI GUI I can run the very same scan without any issue.
Did someone have a clue on what's going on ?
Cheers.
2 Replies


Admiral
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-06-08
14:35
Try changing the WebInspect API service (start->services.msc) to run as the same user you are logged into the machine with when running WebInspect via the GUI. It is likely running now as Local System and it looks as though that user "NT AUTHORITY\\SYSTEM" does not have access to the database.
fraggle

Cadet 1st Class
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-06-12
11:22
That did the trick.
Many thks.