Thanks for your kind reply.
1. i find my website do not have the token of moodle mobile service.
2. enable debug and display it.
3. debug info is here
Debug info: Data too long for column 'privatetoken' at row 1
INSERT INTO mdl_external_tokens (token,externalserviceid,tokentype,userid,contextid,creatorid,timecreated,validuntil,privatetoken) VALUES(?,?,?,?,?,?,?,?,?)
[array (
0 => 'c2a227a705b27359be6817a1f94c8dd4',
1 => '1',
2 => 0,
3 => '2',
4 => 1,
5 => '2',
6 => 1593576738,
7 => 0,
8 => 'EG07vXC02AIKfsIJd0PskfF7ql0vygjRPGuzxPVNPA3C33GuGvJYnZtcNk3j4yoILYtc',
)]
Error code: dmlwriteexception
Stack trace:
line 489 of /lib/dml/moodle_database.php: dml_write_exception thrown
line 1331 of /lib/dml/my
sqli_native_moodle_database.php: call to moodle_database->query_end()
line 1377 of /lib/dml/my
sqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw()
line 778 of /lib/externallib.php: call to mysqli_native_moodle_database->insert_record()
line 86 of /admin/webservice/tokens.php: call to external_generate_token()