DebugAH

How to Solve Your Programmer Error

Skip to content
  • Home
  • Linux
  • JAVA
  • Python
  • Javasript
  • MYSQL
  • Windows
  • Error

[Solved] syntax error, expect {, actual error, pos 0, fastjson-version 1.2.57

As mentioned above, it is obvious that the format of the obtained response message is wrong when it is converted through fastjson in the process of using okhttp.

Should use

String body = response.body().string();

replace

String body = response.body().toString();

 

Similar Posts:

  • [Solved] okhttp3 Error: java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
  • Transcoding of system.web.httputility.urlencode in C #
  • C# String was not recognized as a valid DateTime [How to Solve]
  • [Solved] java.lang.IllegalArgumentException: Cannot format given Object as a Date
  • com.alibaba.fastjson.JSONException: syntax error, expect {, actual [, pos 0
  • document.body.scrollTop or document.documentElement.scrollTop
  • fastjson java.lang.StackOverflowError [How to Solve]
  • hibernate java.lang.StackOverflowError: null
  • Server returned HTTP response code: 500 for URL xxxxxxxxxxxxx
  • Name Error: name ‘yolo_head’ is not defined [How to Solve]

This entry was posted in Error and tagged 12P, actual error, expect {, fastjsonversion 1.2.57, pos 0, Syntax error on January 6, 2022 by Robins.

Post navigation

← [Solved] error: Can’t connect to MySQL server on ‘localhost:3306’ (10061) [Solved] MySQL Workbench 8.0 Error: SSL connection error: SSL is required but the server doesn‘t support it →

Recent Posts

  • [Solved] The bean ‘sysDictService’ could not be injected because it is a JDK dynamic proxy
  • How to Use awk to Analyze Nginx Log
  • [Solved] Win-KeX/wsl2/kali Startup Error: A fatal error has occurred and VcXsrv will now exit.
  • [Solved] samtools: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file
  • k8s Error: [ERROR FileAvailable–etc-kubernetes-kubelet.conf]: /etc/kubernetes/kubelet.conf already exists
  • [Solved] NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath
  • [Solved] flink web ui Submit Task Error: Server Respoonse Message-Internal server error
  • Mysql Error: 1140 – In aggregated query without GROUP BY, expression #2 of SELECT list contains nonaggregated column ‘a.store’; this is incompatible with sql_mode=only_full_group_by
  • [Solved] Mybatis multi-table query error: Column ‘id’ in field list is ambiguous
  • [Solved] fluentd Log Error: read timeout reached

Tags

  • )
  • android
  • android studio
  • CentOS
  • centos7
  • chrome
  • DebugAH
  • django
  • docker
  • eclipse
  • git
  • github
  • go
  • hadoop
  • Hive
  • IDEA
  • ios
  • java
  • jenkins
  • Linux
  • Mac
  • maven
  • MyBatis
  • mysql
  • nginx
  • No module named XXX error
  • npm
  • Oracle
  • php
  • pip
  • pycharm
  • Python
  • Python TypeError
  • redis
  • shell
  • spring
  • springBoot
  • ssh
  • SVN
  • tensorflow
  • tomcat
  • ubuntu
  • vue
  • Windows
  • Yum
Proudly powered by WordPress