Bug? V5.50 and HTTP

GaryK4

Member
Licensed User
Longtime User
I have a program that will not run in debug mode. However if I release it, I do not get any errors. The released program works as it always did.

Now what?


B4A version: 5.50
Parsing code. (0.08s)
Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Occurred on line: 2765
job1.PostString("http://www.rollinghillscountryclub.org/GOLF/Daily-Course-Conditions.aspx", "first key=first value&key2=value2")
Word: first key=first value&key2=value2

If I comment out the job1.PostString then I get the following error.

B4A version: 5.50
Parsing code. (0.06s)
Compiling code. (0.19s)
Compiling layouts code. (0.01s)
Generating R file. (0.09s)
Compiling debugger engine code. Error
B4A line: 2779
WebText = Job.GetString
javac 1.7.0_07
shell\src\golf\match\main_subs_0.java:4489: error: package anywheresoftware.b4a.samples.httputils2 does not exist
_webtext = _job.runClassMethod (anywheresoftware.b4a.samples.httputils2.httpjob.class, "_getstring");Debug.locals.put("WebText", _webtext);
^
1 error
 
Do you have HttpUtils2Service.bas service module in your project? If no, add it
 
Do you have HttpUtils2Service.bas service module in your project? If no, add it

I did not include this file. After doing so, I got an error on okhttpclient which I am not using. At some point, I guess that I need to convert to this, but I don't know how yet.

Error description: Unknown type: okhttpclient
Are you missing a library reference?
Occurred on line: 8 (HttpUtils2Service)
Private hc As OkHttpClient
 
Can you upload the project?

Are there any warnings in the logs about a conflict with a module name?

I can if necessary. It is kind of big.
There are log messages all referencing the same call.
Sub 'SubmitJob' not found. (warning #25)
Code: Copy
CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me)

As per a previous response, I don't have the HttpUtils2Service.bas in my program.


What I don't understand is this code section is over a year old and always worked with prior versions of B4A.
As stated before it still works with a Release compile.
It is build on copied samples. I have not spent time understanding the code.
 
Got it working, but still confused.
Removed the HttpUtil library.
Added HttpUtils2Service.bas
Added OkHttp library​
Don't know why this worked, I will add it to my list of things that I don't understand :-)

Thanks for the leads. It gave me items to test.
 
Back
Top