Android Question Http too many parameters

nibbo

Active Member
Licensed User
Longtime User
Why has this suddenly started happening?

B4A version: 5.20 BETA
Parsing code. (0.08s)
Compiling code. Error
Error compiling program.
Error description: Too many parameters.
Occurred on line: 263
job1.PostString(webSite, postData)
Word: postdata


job1 is a HttpJob which asks for two parameters then errors when you try to run it.
This has worked perfectly until today!
Have had version 5.2 for a few days and it was working just fine.
Both parameters are strings and this is at compile time so it is not an invalid parameter value.

Thanks
 

nibbo

Active Member
Licensed User
Longtime User
can you show some code?

I can but I don't think it will shed any light on this.

B4X:
Sub ExecuteRemoteFunction(Function As String, Parameters As String, JobName As String)
    Dim job1 As HttpJob
    job1.Initialize(JobName, Me)
    Dim postData As String = GlobalMod.BuildMainUrl(Function, Parameters, False)
    job1.PostString(webSite, postData)
End Sub

This has been working absolutely fine for 6 months!
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
Hi Erel,
It is a huge project with a lot of secure info in so I would prefer not to.
I am starting to think it must be part of the app auto updater library as this has http2utils built into it.
My guess is that the xml file says it has 2 parameters but the service embedded in the library only requires one?
I will remove it and see what happens.
Thanks
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
That is a very kind offer Erel, I hope I can resolve it without taking up too much of your time.
I have remove the appUpdater library and the manifest changes and it now works OK so my suspicions were correct.
There must be a mismatch somewhere; how can I tell if I have the latest Http2Utils ?
 
Last edited:
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
The latest version is v2.01. It is included in the IDE installation.
Thanks Erel, I definitely have the latest so I can only assume that AppUpadter has been compiled with an older version.
I have removed it from my project and all is compiling OK so I will write my own version checker and updater.
Will also post on my other thread regarding AppUpdater so people are aware...
Thank you for your help.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
This was fixed in version 1.28 of the AppUpdater library which now works perfectly.
 
Upvote 0
Top