http://myservice.azurewebsites.net/tables/todoitem?ZUMO-API-VERSION=2.0.0
Or if I add ms_skipversioncheck as true in the portal.
It may be related to the difference in server or client version.
Even if I update all nuget packages, the same thing, Just receive BadRequest(400)
But using this server described above, when I run the client project (android emulator in Visual Studio), it can work normally in unsynchronized mode.
Once I download the nuget sqlite localstore and uncomment the line:
// #define OFFLINE_SYNC_ENABLED
and make this line:
Wait for RefreshItems(true ,syncItems: true);
In order to enable offline mode, I only receive BadRequest(400) again
I don’t know what to check to make the version compatible.
< p>I did not include the stack trace or log because BadRequest is the only thing I received.
If you need more information, please let me know.
Thank you
Edit:
I checked this link, but it is difficult for me to solve my problem.
https://github.com/Azure/azure-content/blob/master/articles/ app-service-mobile/app-service-mobile-client-and-server-versioning.md
It drives me crazy
You can use Fidd ler (http://www.telerik.com/fiddler) or other web debuggers to view this content.
Example:
Request
Get http:/ /azielnettest.azurewebsites.net/tables/todoitem
Respond to
HTTP/1.1 400 Bad Request
{“message”: “The API version is not specified in the request, this request needs to specify ZUMO-API -VERSION is ‘2.0.0’. For more information and supported clients, please refer to: http://go.microsoft.com/fwlink/?LinkId=690568#2.0.0”}
Request
http://azielnettest.azurewebsites.net/tables/todoitem?zumo-api-version=2.0.0
Response
200
{Data….} p>
This is the first step of debugging.
The second step is to check
a) The packages.config of the server project you deploy to the site.
You You should find something like this…
pre> b) packages.config of Xamarin Forms project.
If your Microsoft.Azure.Mobile.Client version is lower than 2.0.0, it will not work on the Azure Mobile App backend because zumo-api-version is not Included in the header of the old client.
Hope this helps.
I downloaded Xamarin.Forms QuickStart Projects( Server and client), and then published the server project, so far it has been good, But I cannot access the table controller unless I add the query string as described.
http://myservice.azurewebsites.net/tables/todoitem?ZUMO-API-VERSION=2.0.0
Or if I add ms_skipversioncheck as true in the portal.
It may be related to the difference in server or client version.
Even if I update all nuget Package, the same thing, just receive BadRequest(400)
But using this server described above, when I run the client project (android emulator in Visual Studio), it can be It works normally in sync mode.
Once I download nuget sqlite localstore and uncomment the line:
// #define OFFLINE_SYNC_ENABLED
and make this line:< br>Wait for RefreshItems(true,syncItems:true);
In order to enable offline mode, I only receive BadRequest(400) again
I don’t know what to check to make the version compatible .
I did not include the stack trace or log because BadRequest is the only thing I received.
If you need more information, please let me know.
Thank you
Edit:
I checked this link, but it is difficult for me to solve my problem.
https://github.com/Azure/azure-content/ blob/master/articles/app-service-mobile/app-service-mobile-client-and-server-versioning.md
It drives me crazy
< /p>
In the body of the 400 bad request response, the error message is usually included.
You can use Fiddler (http://www.telerik.com/fiddler) or other web debuggers to view this content. < p>
Example:
Request
Get http://azielnettest.azurewebsites.net/tables/todoitem
Response
HTTP/1.1 400 Bad request
{"mes sage": "The API version is not specified in the request. This request needs to specify ZUMO-API-VERSION as '2.0.0'. For more information and supported clients, please refer to: http://go.microsoft.com/ fwlink/?LinkId=690568#2.0.0”}
Request
http://azielnettest.azurewebsites.net/tables/todoitem?zumo-api-version=2.0.0
Response
200
{data...}
This is the first step of debugging.
The second step is to check
a) The packages.config of the server project you deployed to the site.
You should find something like this...
b) packages.config of Xamarin Forms project.
If your Microsoft.Azure.Mobile.Client version is lower than 2.0.0, it Will not work on the Azure Mobile App backend because zumo-api-version is not included in the header of the old client.
Hope this helps.