Facing error code 6 in curl easy perform when tried in Android TV HIDL service - libcurl

I am trying to perform fetch the URL contents using curl in HIDL service in Android TV. But when curl_easy_perform is executed, facing the below strerror
result: 6, curl_easy_strerror: Couldn't resolve host name
This was executed in Android 11 using libcurl in c++.

Related

grpc C++: default Ssl ChannelCredentials client side calls fail

Using the grpc version 1.38.0, compiled on CentOS 7 from sources with gcc version 9.4.0 and cmake version 3.19.6 (with all the cmake dependencies set to "module"), the following code taken from the grpc documentation site:
auto channel_creds = grpc::SslCredentials(grpc::SslCredentialsOptions());
auto channel = grpc::CreateChannel(server_name, channel_creds);
compiles, links, runs, does not coredump but the respective grpc calls executed against that channel all fail with the following error message:
E0816 17:49:03.236686130 14443 ssl_transport_security.cc:1468] Handshake failed with fatal error SSL_ERROR_SSL: error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER.
Since the referenced above google's documentation sample that implements
the simplest authentication scenario, where a client just wants to authenticate the server and encrypt all data
is taken to be complete, the respective grpc c++ server was bound to a needed port via the grpc::InsecureServerCredentials() option.
Clearly, either the sample code is not complete or some other instructions on how to implement "the simplest authentication scenario, where a client just wants to authenticate the server and encrypt all data" are missing.
Question: could someone please provide a complete c++ code that must be written on both the grpc c++ client side and the grpc c++ server side so that the much advertised "simplest authentication scenario, where a client just wants to authenticate the server and encrypt all data" actually works and the encrypted bytes do flow over the wire from a grpc c++ client to its grpc c++ server and the said grpc c++ server decrypts these bytes and passes them onto the underlying application? Along with any other non code instructions if those are needed.
Changing the code on the grpc c++ server side to use the grpc::SslServerCredentials( grpc::SslServerCredentialsOptions() ) leads to a code that compiles, links, runs but quickly dumps core with the following error message:
E0816 19:24:26.270527688 15081 ssl_security_connector.cc:268] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
E0816 19:24:26.270775700 15081 server_secure_chttp2.cc:124] {"created":"#1629141866.270756657","description":"Unable to create secure server with credentials of type Ssl","file":"/opt/grpc_source/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc","file_line":104}
Segmentation fault
Running both the grpc c++ client and the grpc c++ server (on two different CentOS 7 boxes) in the "clear text" or "non secure" mode works perfectly fine - the said client happily packages its data into the protobuf message, executes the grpc call, the grpc c++ server receives the message and all is good.
Does anyone have any idea about what has to be done on the grpc c++ server side, I suspect, so that the functionality advertised on the grpc documentation site actually works - I am not looking to mess about with the custom certificate files, if it can be helped at all.
Using the default and built-in Ssl/Tls mechanism of the native grpc libraries is perfectly fine. In other words, some minimal viable grpc security is sufficient.
Thank you for any constructive insight.

COM Port not available on Mongoose OS for IoT sensor device TI CC3200

Just want to build Google IOT core with mongoose OS running for sensing temperature data on google PUBSUB.
I have a problem starting from beginning while not able to the connect via an approved google Core IOT Device - "TI CC3200". Its not able to connect to Mongoose OS. Its getting "access denied" on all COM ports, tried almost all changing COM 1,2,34,5…not working at all…10 times restarted system. Already Installed all required COM Drivers required for Windows 10. Just want to connect Mongoose OS and Sensortag CC3200 and later integrate with GCP Core IOT to push data further.
I am referring this blog post provided by Mongoose OS Team for integration.
https://mongoose-os.com/docs/mongoose-os/cloud/google.md
MOS Screen here for reference
I have tried on other windows 10 and Windows 8 PC, but no success. Same error Access Denied on Mongoose OS screen
Access denied on MOS Screen immediately

Web Service is running on local host but showing error on azure cloud

I have created a web service which will do some long string calculation and will return result in json format .
Also written a demo app to test that web service.
I have tested the web service on my local machine.
Its working good when I used 64 bit compiler.
For 32 bit it doesn't work well due to memory constraints.(I am fine with 62 bit compiler)
Issue:
When I tried running my script on azure cloud. Its getting failed for heavy data calculation with error " Response status Code: does not indicate success: 502(Bad Gateway) "
I am unable to find reason for that.
Some Possibilities :
Do I require to turn any option to 64 bit explicitly for azure cloud.
By any chance timeout is happening, If yes then how to remove that
I am working on basic free trial of Microsoft azure version, Does they have some limitation for that.
I am calling the web service through "client.BaseAddress = new Uri("http://featuretracking.azurewebsites.net/");"
and local host through "http://localhost:56411/"
I have deployed as web app on azure.
There is an offical article for troubleshooting http error 502 & 503, which list some reasons below for the issue and how to troubleshoot.
requests taking a long time
application using high memory/CPU
application crashing due to an exception.
Please check eventlog.xml file in the logFiles folder via access the kudu tool https://<your-webapp-name>.scm.azurewebsites.net/ to see what happended at the time of error 502.

Cannot start server in coldfusion builder 2

I have installed Adobe ColdFusion builder 2 and was able to set it up, using this tutorial
http://www.adobe.com/devnet/coldfusion/articles/setup_dev.html
After I restarted my computer (for some updates to take effect), I am unable start the server I added using ColdFusion Builder (cfserver). I get the following error -
'starting cfusion' has encountered a problem
Ensure that the server is not already running, or another application is not using the WebServer port.
Does anyone know what to do about this? I am completely lost
EDIT: This is the error the console prints out
[cfusion]:07/13 12:50:14 Error [Thread-13] - Platform, Locale, and Platform Name must not be null
If you are using Vista or Windows 7 I used to have a problem with trying to start the ColdFusion server unless I launched CFB with Administrator privileges and ran it in XP Compatability mode.

Using sample code in RFC 4777 - InitializeSecurityContext returns error

I am trying to create a single-sign on connection to a System i server using the example published in IBM's iSeries Telnet Enhancements RFC 4777 within a client telnet app written in C++.
The code sample given calls AcquireCredentialsHandle and then a call to InitializeSecurityContext. The call to InitializeSecurityContext returns an error of SEC_E_TARGET_UNKNOWN, presumably because it does not understand the target name I am passing.
The RFC 4777 says this target name should be a string with kbsrv400 then my server name fully qualified in lower case. I interpretted this as "krbsrv400/iseries.domain.com". I've tried a variety of combinations here but can't get anything to work and not yet found any other code samples that use the MS SSPI API to connect to IBM System i.
I know the Kerberos setup on the System i and domain is working OK as IBM's own iSeries Access is able to login OK and perform a telnet 5250 signon using kerberos.
I am running on Windows 7 signed into a domain. The domain is setup under Active Directory in Windows 2008. I'm using MS Visual Studio 2005 to build my telnet app. The System i server OS is V6R1.
Has anyone got this sample code working?
Any advice on what the format of the target name should be when using it to talk to System i?
Thanks!
Additional info: 9/8/2011
Have got this working OK under Windows XP client with a Windows 2003 managed Domain.
There were two errors in the RFC:
1) It said to use a name of "krbsrv400/spi name" but looking at the ticket in kerbtray that was generated when I logged in using iSeries Access, I saw the actual format was "krbsvr400/spi name".
2) The RFC said to pad the ticket length sent to the system i but when I used Wireshark to look at the IBM iSeries access telnet, I found they did not pad it.
Changing the above got single-signon working OK in my app on Windows XP. I am still experiencing problems on Windows 7.
This is a different domain (managed by the company, and on Windows 2008 and Windows 2003 servers across the world) and with a different iSeries.
Strangely, I can use Kerberos login in System i Access OK, but when I look in kerbtray I do not see a kerbsvr400/... ticket for the system i machine like I do on Windows XP. My app does not work and fails with a SEC_E_TARGET_UNKNOWN error.