mirror of
https://github.com/fluencelabs/fluid
synced 2025-04-24 22:32:16 +00:00
Fix run.sh
This commit is contained in:
parent
4a5d20343b
commit
730a46a9a8
@ -28,8 +28,9 @@ echo
|
|||||||
sleep 1 && (docker logs -f frun 2>&1 &) | grep -q initialized && sleep 1
|
sleep 1 && (docker logs -f frun 2>&1 &) | grep -q initialized && sleep 1
|
||||||
|
|
||||||
# Send our username to the application
|
# Send our username to the application
|
||||||
echo -e "Sending request..."
|
REQUEST="$USER"
|
||||||
echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'$USER --compressed"
|
echo -e "Sending request: $REQUEST"
|
||||||
|
echo "curl -s 'http://localhost:30000/apps/1/tx' --data $'sessionId/0\n'"$REQUEST" --compressed"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
RESPONSE=$(curl -s 'http://localhost:30000/apps/0/tx' --data $'sessionId/0\n'"$REQUEST" --compressed)
|
RESPONSE=$(curl -s 'http://localhost:30000/apps/0/tx' --data $'sessionId/0\n'"$REQUEST" --compressed)
|
||||||
|
@ -9,7 +9,7 @@ pub fn query(query: &str) -> AppResult<String> {
|
|||||||
|
|
||||||
// Log if there's an error
|
// Log if there's an error
|
||||||
if result_str.is_err() {
|
if result_str.is_err() {
|
||||||
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
log::error!("unable to decode result from bytes: {:#x?}", response);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wrap error with a better message, and return Result
|
// Wrap error with a better message, and return Result
|
||||||
@ -17,7 +17,7 @@ pub fn query(query: &str) -> AppResult<String> {
|
|||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
err_msg(&format!(
|
err_msg(&format!(
|
||||||
"unable to decode result from bytes {:#x?}: {}",
|
"unable to decode result from bytes {:#x?}: {}",
|
||||||
query, e
|
response, e
|
||||||
))
|
))
|
||||||
})
|
})
|
||||||
.map(|s| s.to_string())
|
.map(|s| s.to_string())
|
||||||
|
@ -9,7 +9,7 @@ pub fn query(query: &str) -> AppResult<String> {
|
|||||||
|
|
||||||
// Log if there's an error
|
// Log if there's an error
|
||||||
if result_str.is_err() {
|
if result_str.is_err() {
|
||||||
log::error!("unable to decode result from bytes: {:#x?}", bytes);
|
log::error!("unable to decode result from bytes: {:#x?}", response);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wrap error with a better message, and return Result
|
// Wrap error with a better message, and return Result
|
||||||
@ -17,7 +17,7 @@ pub fn query(query: &str) -> AppResult<String> {
|
|||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
err_msg(&format!(
|
err_msg(&format!(
|
||||||
"unable to decode result from bytes {:#x?}: {}",
|
"unable to decode result from bytes {:#x?}: {}",
|
||||||
query, e
|
response, e
|
||||||
))
|
))
|
||||||
})
|
})
|
||||||
.map(|s| s.to_string())
|
.map(|s| s.to_string())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user