Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
iso8583
/
bjb-samsat-banten
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 556de23b
authored
Apr 05, 2019
by
Aplikasi Samsat Banten
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
timeout
1 parent
b6c924d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
opensipkd/iso8583/bjb/samsat/banten/doc.py
opensipkd/iso8583/bjb/samsat/banten/doc.py
View file @
556de23
...
@@ -92,7 +92,11 @@ class Doc(Transaction):
...
@@ -92,7 +92,11 @@ class Doc(Transaction):
self
.
log_info
(
"URL:{} timeout:{} detik"
.
format
(
url
,
timeout
))
self
.
log_info
(
"URL:{} timeout:{} detik"
.
format
(
url
,
timeout
))
self
.
log_info
(
"REQUEST {}"
.
format
(
data
))
self
.
log_info
(
"REQUEST {}"
.
format
(
data
))
results
=
requests
.
post
(
url
,
json
=
data
,
headers
=
headers
,
timeout
=
timeout
)
# data=jsondata,
try
:
results
=
requests
.
post
(
url
,
json
=
data
,
headers
=
headers
,
timeout
=
timeout
)
# data=jsondata,
except
Excetions
as
e
:
print
(
e
)
if
results
.
status_code
!=
200
:
if
results
.
status_code
!=
200
:
self
.
log_error
(
results
)
self
.
log_error
(
results
)
self
.
log_error
(
results
.
text
)
self
.
log_error
(
results
.
text
)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment