dosubot[bot] commented on issue #8588:
URL: 
https://github.com/apache/incubator-devlake/issues/8588#issuecomment-3322940605

   <!-- Answer -->
   The error happens because DevLake's ZenTao plugin tries to parse all planned 
date fields as ISO8601 dates, but 'long-term' (e.g., "้•ฟๆœŸ") is a special string 
in ZenTao that isn't a valid date. The parser expects a date and fails when it 
encounters this value, causing the remote scopes interface error you described. 
There is currently no logic in the codebase to handle or sanitize non-date 
values like 'long-term'โ€”they are passed directly to the date parser, which 
throws an error when it can't parse them 
([source](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/core/models/common/iso8601time.go),
 
[source](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/zentao/models/project.go)).
   
   A practical solution would be to add logic in the ZenTao plugin to detect 
and handle special values like 'long-term' before attempting to parse them as 
dates. For example, you could treat these as `nil` or ignore them, so the 
parser only receives valid date strings. This would prevent the error and allow 
projects with indefinite planned dates to be processed gracefully.
   
   No recent pull requests or documentation address this issue, so this would 
be a new improvement for the ZenTao integration.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/5f422399-f964-42ba-8a71-627759398ae9?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/5f422399-f964-42ba-8a71-627759398ae9?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/5f422399-f964-42ba-8a71-627759398ae9?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/5f422399-f964-42ba-8a71-627759398ae9?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/5f422399-f964-42ba-8a71-627759398ae9?feedback_type=hallucination)
 | [Report 
๐Ÿ›](https://app.dosu.dev/response-feedback/5f422399-f964-42ba-8a71-627759398ae9?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/5f422399-f964-42ba-8a71-627759398ae9?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8588)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to