DMTF / Redfish-URI-Validator

The Redfish URI Validator is a Python3 tool which scans all resources on a given service and verifies the URIs on the service match the patterns described in a provided OpenAPI specification.
Other
1 stars 2 forks source link

ERROR: Could not log into target #8

Closed snk20501 closed 4 years ago

snk20501 commented 5 years ago

Hi,

I try the latest code and can't log into the target with correct credential. The ERROR always shows after program ruining for a while. Please help to check.

billdodd commented 5 years ago

I tested the latest code against a couple of services and did not see any errors.

Can you please provide the exact output of the command, including the error message?

snk20501 commented 5 years ago

@billdodd Please refer to attached snapshot. I use curl command to get the target service root first and you can see it success. snapshot

mraineri commented 5 years ago

Can you access other resources with the same credentials? Service Root doesn't require authentication. Can you also create a session with those credentials?

billdodd commented 5 years ago

@snk20501 - If you confirm the creds are correct per @mraineri's suggestion above, please clone the branch for PR #9 and give that a try. It should display the call stack of the exception received. That will likely help with narrowing down the problem.

snk20501 commented 5 years ago

@billdodd @mraineri From below debug output, can see tool shows error when it access one invalid URI in our product as an issue. snapshot

mraineri commented 5 years ago

@snk20501 could you please try updating your version of the "redfish" module? We just published version 2.1.3, which should handle this.

snk20501 commented 4 years ago

@mraineri @billdodd after update latest modules, it works now.