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

No platform error message on Microsoft platforms? #677

Open
redbaron opened this issue Mar 22, 2022 · 4 comments
Open

No platform error message on Microsoft platforms? #677

redbaron opened this issue Mar 22, 2022 · 4 comments

Comments

@redbaron
Copy link
Contributor

I noticed that Microsoft platforms return empty string from HCHttpCallResponseGetPlatformNetworkErrorMessage . I suppose platErrCode can be inspected somehow, but it's value is engine specific and will be different between XDK and GDK/WIN32. What is recommended way to get human readable error regardless of the platform?

image

@jasonsandlin
Copy link
Member

Ya, its just for logging/debugging in case the platform sends a debug string. On those platforms, there's no string so its blank. If you want to convert HRESULTs to string for logging, then I would grab a function like this and put it somewhere in your codebase:

https://github.com/microsoft/DXUT/blob/main/Core/dxerr.cpp#L68

@redbaron
Copy link
Contributor Author

This implies that I need to be platform aware in my code when using libhttpclient :(

@jasonsandlin
Copy link
Member

Understood -- just leave this issue open and it'll be on our backlog. Not sure when we'll get to it, but I could see it being useful for folks

@songguanqing
Copy link

Is this library support Hololens2 ?

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