HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(interceptor)
.retryOnConnectionFailure(true)
.connectTimeout(15, TimeUnit.SECONDS)
.build();
Retrofit retrofit = new Retrofit.Builder().baseUrl(api_url).client(client).addConverterFactory(GsonConverterFactory.create()).build();
RetrofitService service = retrofit.create(RetrofitService.class);
Call<ApiGetMapFarms> getMapFarms = service.getMapFarms(api_token, farm_group_id);
getMapFarms.enqueue(new Callback<ApiGetMapFarms>() {
Note: if the parse line to the parse line, if the copy of the parse will not resolve because of the whitespace problem
Read More:
- springboot : Failed to decode downloaded font 和 OTS parsing error
- The icon on the layui page is not displayed, and an error message is reported: Failed to decode downloaded font …..
- PhpMyAdmin localhost only displays the codes of configuration
- Error: GDk_ BACKEND does not match available displays
- Android studio displays the class and method where the cursor is located
- How Notepad + + displays all characters (for hidden carriage return spaces)
- Postman returns to the data window and displays the JSON format by default
- Google cloud disk: too many users have recently viewed or downloaded this file. Please try to access this file later. (How to Bypass Google Drive Download Limit (Quota Exceeded) Error)
- When the MAC M1 uiautomatorviewer is opened, it displays blank or reports an error
- CSS Failed to decode downloaded font, OTS parsing error: Failed to convert WOFF 2.0 font to SFNT
- VMware imports an external virtual machine and displays system error: (unknown exception). Wrong solution
- JS Ajax request is successful, the response displays “failed to load response data”
- The sharepoint2010 site cannot open a solution that displays an “an unexpected error has occurred” error
- Delete all content under vim
- Git removes the content of stash
- Python implements inserting content in the specified position of text
- [Error] because it violates the following Content Security Policy directive
- A method of collecting JS dynamic content by PHP
- 0001: unable to locate the content swf directory: app:/mod/win
- Use Python to insert the specified content in the specified line of the specified file