Open rafaeliga opened 8 years ago
Please provide a sample I can run
I created a new project to test:
motion create --template=flow HelloFlowSample
main_activity.rb
class MainActivity < Android::App::Activity
def onCreate(savedInstanceState)
Store.context = self
super
Net.get('http://www.google.com/error') do |response|
p "====== #{response.status} ======="
end
end
end
Crash/error:
--------- beginning of system --------- beginning of main (main)> 08-19 16:23:41.134 7839 7944 E com/yourcompany/helloflowsample: Java exception raised: java.io.FileNotFoundException: http://www.google.com/error --------- beginning of crash
hey @jjaffeux, did you reproduce the crash?
I would try to debug the Java files....can you help me with that?
thanks
@jjaffeux can you help me to start on debug and fix this error on Flow/Net? Which file should be looking? android/request.rb(https://github.com/HipByte/Flow/blob/master/flow/net/android/request.rb)? Thanks!
@jjaffeux please check the pull request that I created when you have a chance! Thanks!
When my api returns any status code different from 200, I get this error/crash:
My call:
I try to add a begin/rescue blocks, but it didnt work.