Back

Using dart SDK to get the string truncated

  • 0
  • Databases
joser
28 Dec, 2023, 06:53

My data text

TypeScript
{\"flutter\":\"0d666fe80a4d558ce1bf5bcee57c5c47433911df\",\"unity\":{\"cache\":\"6c5fc10b555800648f714e3c776ddb222e9b29c5\",\"log\":\"6c5fc10b555800648f714e3c776ddb222e9b29c5\"}}

However, when obtaining the corresponding data through Dart SDK, the length of the viewing field is intercepted.

TL;DR
The user is encountering an issue with the Dart SDK where they are unable to retrieve the full string value and it is being truncated. They have attempted to use the print function but it did not solve the issue. The suggestion was made to check the value in the Appwrite console. The user is also asked to provide more details about the attribute. A solution is mentioned to print the value instead of using the debugger.
Drake
28 Dec, 2023, 07:24

Is this your IDE's debugger?

joser
28 Dec, 2023, 07:40

Yes

Drake
28 Dec, 2023, 07:45

The debugger truncates strings. Print it to see the full value

joser
28 Dec, 2023, 08:51

No, I tried printing and it was still truncated.

Drake
28 Dec, 2023, 20:39

what are the details about the attribute?

Drake
28 Dec, 2023, 20:40

what does it look like in the Appwrite Console?

joser
3 Jan, 2024, 00:29

is a string field

joser
3 Jan, 2024, 00:29

At present, I have disassembled the contents.

Drake
3 Jan, 2024, 01:06

no the actual document

Drake
3 Jan, 2024, 01:07

did you actually add a print() line to your code?

joser
3 Jan, 2024, 01:11

Yes I added Print

Drake
3 Jan, 2024, 04:36

Would you please share a screenshot of the print output and the document in the Appwrite console?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more