Wireless-Innovation-Forum / Citizens-Broadband-Radio-Service-Device

Apache License 2.0
31 stars 19 forks source link

Error with WINNF.FT.C.REG.1 #144

Closed gracank closed 3 years ago

gracank commented 3 years ago

On executing StartOfProject.py on getting below error in SAS Harness: WINNF TEST HARNESS RELEASE: 1.0.0.3 - 2018-November-13 Please enter a csv file path that include the test you request to run (pay attention insert the csv file without the csv suffix) , type quit and press ctrl+c to close WINNF.FT.C.REG.1 would you like to add the test to specific folder ? (select yes or no) no the selected test from the user : WINNF.FT.C.REG.1 is starting now [2020-10-14 21:51:55,608] ERROR in app: Exception on /v1.2/registration [POST] Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request return self.view_functionsrule.endpoint File "./../model/flaskServer.py", line 44, in sent_Flask_Req_To_Server json_dict = json.loads(request.data,object_pairs_hook=OrderedDict) File "/usr/local/lib/python2.7/json/init.py", line 352, in loads return cls(encoding=encoding, **kw).decode(s) File "/usr/local/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python2.7/json/decoder.py", line 380, in raw_decode obj, end = self.scan_once(s, idx) ValueError: Expecting object: line 1 column 520 (char 519)

here is conf.xml file:

 <?xml version="1.0"?>
 <cbrsParams>
         <jsonsRepoPath>jsonExpectedFolder</jsonsRepoPath>
         <testRepoPath>testFiles</testRepoPath>
         <hostIp>XX.XX.XX.XX</hostIp>
         <port>443</port>
         <heartbeatLimit>30</heartbeatLimit>
         <pemFilePath>certificates/trialcerts/sasharnesscert.pem</pemFilePath>
         <keyFilePath>certificates/trialcerts/sasharnesspriv.key</keyFilePath>
         <caCerts>certificates/trialcerts/cbrs_ca1.pem</caCerts>
         <cpiCert>certificates/trialcerts/cpicert.pem</cpiCert>
 </cbrsParams>

here is how I am trying to snd the request from domain proxy curl -X POST -k https://XX.XX.XX.XX:443/v1.2/registration HTTP/1.1 -H "Content-Type: application/json" -d '{"method":"registration","args":{"registrationRequest":[{"fccId":"xxxxxx","cbsdCategory":"A","userId":"xxxxxx","airInterface":{"radioTechnology":"E_UTRA"},"cbsdSerialNumber":"xxx","measCapability":["RECEIVED_POWER_WITHOUT_GRANT"],"installationParam":{"latitude":xxx,"longitude":xxx,"height":x,"heightType":"xx","horizontalAccuracy":xx,"verticalAccuracy":x,"indoorDeployment":true,"antennaAzimuth":xx,"antennaDowntilt":xxx,"antennaGain":xxxx,"eirpCapability":xx,"antennaBeamwidth":xxx}}]}' --cacert ./cbrs_ca1.pem --cert ./71_chain.pem --key ./domainproxyuutpriv.key

where 71_chain.pem is created as(step 71 in readme file): cat dpuutcert.pem >71_chain.pem cat dpcacert1.pem >>71_chain.pem

remaining pem and key files are created as part of: readme_file_x509_RSA_certs_test_labs.txt

On sender side i.e domain proxy after sending the request getting below message:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<title>500 Internal Server Error</title>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error and was unable to complete your request.  Either the server is overloaded or there is an error in the application.</p>
curl: (6) Could not resolve host: HTTP

Could you provide any suggestion?