Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
IoT Platform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IoT
IoT Platform
Commits
911d3a7f
Commit
911d3a7f
authored
6 months ago
by
Rodrigo Goncalves
Browse files
Options
Downloads
Patches
Plain Diff
Identification and treatment of invalid/missing certificate
parent
6e175c1e
No related branches found
No related tags found
4 merge requests
!25
Resolve "CI/CD for SmartDataContext"
,
!24
Resolve "Fixes and optimizations for SmartDataContext"
,
!23
Resolve "SI Units for Ingress data from TikiWiki"
,
!22
Resolve "Unstructured SmartDataContext storage"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ingress/app/services/smartdataapi/SmartDataContextApiClient.php
+3
-0
3 additions, 0 deletions
...s/app/services/smartdataapi/SmartDataContextApiClient.php
with
3 additions
and
0 deletions
ingress/app/services/smartdataapi/SmartDataContextApiClient.php
+
3
−
0
View file @
911d3a7f
...
@@ -42,10 +42,13 @@ class SmartDataContextApiClient
...
@@ -42,10 +42,13 @@ class SmartDataContextApiClient
$response
=
curl_exec
(
$ch
);
$response
=
curl_exec
(
$ch
);
$error
=
curl_error
(
$ch
);
$error
=
curl_error
(
$ch
);
$http_status
=
curl_getinfo
(
$ch
,
CURLINFO_HTTP_CODE
);
curl_close
(
$ch
);
curl_close
(
$ch
);
if
(
$error
)
{
if
(
$error
)
{
return
[
'errors'
=>
[
$error
]];
return
[
'errors'
=>
[
$error
]];
}
else
if
(
$http_status
==
401
)
{
return
[
'errors'
=>
[
"Unauthorized (invalid certificate)."
]];
}
}
return
json_decode
(
$response
,
true
);
return
json_decode
(
$response
,
true
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment