Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strava_to_garmin_cn上传报错,但是毫无头绪为什么 #553

Open
aiuuwe opened this issue Nov 28, 2023 · 10 comments
Open

strava_to_garmin_cn上传报错,但是毫无头绪为什么 #553

aiuuwe opened this issue Nov 28, 2023 · 10 comments

Comments

@aiuuwe
Copy link

aiuuwe commented Nov 28, 2023

尝试模拟虚拟设备序列号,也找了对应型号

GARMIN_DEVICE_PRODUCT_ID = 3992 # Forerunner 255
GARMIN_SOFTWARE_VERSION = 13.23 # 升级了版本
GARMIN_DEVICE_SERIAL_NUMBER = 34245xxxxx # 打个码

Evening_Run.tcx
garmin upload success: {'uploadId': 5564567344, 'uploadUuid': {'uuid': 'ff2fd964-6f4c-4045-9697-cf1132a26eaa'}, 'owner': 11454265, 'fileSize': 803614, 'processingTime': 178, 'creationDate': '2023-11-28 07:25:05.811 GMT', 'ipAddress': None, 'fileName': 'Evening_Run.tcx', 'report': None, 'successes': [], 'failures': [{'internalId': None, 'externalId': None, 'messages': [{'code': 500, 'content': 'An unexpected error occurred while processing the file.'}]}]}

@yihong0618
Copy link
Owner

是都报错还是只有这个报错?

@aiuuwe
Copy link
Author

aiuuwe commented Nov 28, 2023

是都报错还是只有这个报错?

@yihong0618 目前看到的是报错3个,其他的应该是有同步成功 139个
garmin last activity date: 2023-11-24 10:57:49
strava activities size: 3

@yihong0618
Copy link
Owner

那理论上是这三个本身有问题。。。

@aiuuwe
Copy link
Author

aiuuwe commented Nov 28, 2023

嗯, 那我看看怎么跳过这3条记录吧, 再观察下。感谢~

@yihong0618
Copy link
Owner

应该已经跳过了,传完了,你上去看看就行

@Vensent
Copy link
Contributor

Vensent commented Apr 17, 2024

亲测了类似的情况,这三个tcx文件的格式存在问题,需要自己手动加上类似这样一段到Activity下面:
image

@yihong0618
Copy link
Owner

亲测了类似的情况,这三个tcx文件的格式存在问题,需要自己手动加上类似这样一段到Activity下面:

image

我们最好能在代码里自动加看看我先打开这个 issue

@yihong0618 yihong0618 reopened this Apr 17, 2024
@Vensent
Copy link
Contributor

Vensent commented Apr 18, 2024

strava的tcx下载下来的话会出现格式问题,必须要把tcx先format一下才可以往garmin传。

亲测了从Garmin下载下来的tcx传到strava再从strava下载下来都会是有格式问题。

@yihong0618
Copy link
Owner

strava的tcx下载下来的话会出现格式问题,必须要把tcx先format一下才可以往garmin传。

亲测了从Garmin下载下来的tcx传到strava再从strava下载下来都会是有格式问题。

谢谢。来个 PR?

@Vensent
Copy link
Contributor

Vensent commented Apr 19, 2024

@yihong0618
这个问题我本地试了很好复现:

  1. 先去佳明把活动的tcx文件下下来
  2. 把这个tcx文件传到strava
  3. 执行成功后把这个文件从strava下载下来
  4. 新的这个tcx文件再传到佳明就会失败

所以脚本执行异常也是这个道理,因为strava下载下来的时候虽然内容没问题,但是xml的缩进乱掉了。这个我试了没有好的办法,等待后续厉害的朋友继续解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants