-
Notifications
You must be signed in to change notification settings - Fork 3
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
Bug report: ERROR: while parsing a block mapping at line 9, column 8: expected <block end>, but found YAML.ScalarToken at line 9, column 18 #11
Comments
The same code works fine with BSON, JLD2, JLSO, and JSON, so I think the problem is specific to YAML. julia> import BrokenRecord
julia> import GitHub
julia> import HTTP
julia> for extension in ["bson", "jld2", "jlso", "json"]
dir = mktempdir()
cd(dir)
BrokenRecord.configure!(; path=dir)
for i = 1:4
x = BrokenRecord.playback(() -> GitHub.repo("JuliaLang/julia"), "test.$(extension)")
@info "" extension i typeof(x)
end
end
┌ Info:
│ extension = "bson"
│ i = 1
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "bson"
│ i = 2
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "bson"
│ i = 3
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "bson"
│ i = 4
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jld2"
│ i = 1
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jld2"
│ i = 2
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jld2"
│ i = 3
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jld2"
│ i = 4
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jlso"
│ i = 1
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jlso"
│ i = 2
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jlso"
│ i = 3
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "jlso"
│ i = 4
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "json"
│ i = 1
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "json"
│ i = 2
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "json"
│ i = 3
└ typeof(x) = GitHub.Repo
┌ Info:
│ extension = "json"
│ i = 4
└ typeof(x) = GitHub.Repo |
Here are the contents of the responses:
- headers:
- server: "github.com"
- date: "Tue, 08 Dec 2020 02:16:07 GMT"
- content-type: "application/json; charset=utf-8"
- status: "200 OK"
- cache-control: "public, max-age=60, s-maxage=60"
- vary: "Accept, Accept-Encoding, Accept, X-Requested-With"
- etag: "W/"87f1c54eb525ed2b0aa95a7593e66147aed32dc19bd1439b7bb0d7c09c164489""
- last-modified: "Tue, 08 Dec 2020 01:59:29 GMT"
- x-github-media-type: "github.v3; format=json"
- access-control-expose-headers: "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"
- access-control-allow-origin: "*"
- strict-transport-security: "max-age=31536000; includeSubdomains; preload"
- x-frame-options: "deny"
- x-content-type-options: "nosniff"
- x-xss-protection: "1; mode=block"
- referrer-policy: "origin-when-cross-origin, strict-origin-when-cross-origin"
- content-security-policy: "default-src 'none'"
- X-Ratelimit-Limit: "60"
- X-Ratelimit-Remaining: "59"
- X-Ratelimit-Reset: "1607397367"
- X-Ratelimit-Used: "1"
- Accept-Ranges: "bytes"
- Content-Length: "5825"
- X-GitHub-Request-Id: "C534:7C7F:72D1BD:13C073D:5FCEE1E6"
body: "{"id":1644196,"node_id":"MDEwOlJlcG9zaXRvcnkxNjQ0MTk2","name":"julia","full_name":"JuliaLang/julia","private":false,"owner":{"login":"JuliaLang","id":743164,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MzE2NA==","avatar_url":"https://avatars0.githubusercontent.com/u/743164?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/JuliaLang/julia","description":"The Julia Programming Language","fork":false,"url":"https://api.github.com/repos/JuliaLang/julia","forks_url":"https://api.github.com/repos/JuliaLang/julia/forks","keys_url":"https://api.github.com/repos/JuliaLang/julia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuliaLang/julia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuliaLang/julia/teams","hooks_url":"https://api.github.com/repos/JuliaLang/julia/hooks","issue_events_url":"https://api.github.com/repos/JuliaLang/julia/issues/events{/number}","events_url":"https://api.github.com/repos/JuliaLang/julia/events","assignees_url":"https://api.github.com/repos/JuliaLang/julia/assignees{/user}","branches_url":"https://api.github.com/repos/JuliaLang/julia/branches{/branch}","tags_url":"https://api.github.com/repos/JuliaLang/julia/tags","blobs_url":"https://api.github.com/repos/JuliaLang/julia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuliaLang/julia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuliaLang/julia/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuliaLang/julia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuliaLang/julia/statuses/{sha}","languages_url":"https://api.github.com/repos/JuliaLang/julia/languages","stargazers_url":"https://api.github.com/repos/JuliaLang/julia/stargazers","contributors_url":"https://api.github.com/repos/JuliaLang/julia/contributors","subscribers_url":"https://api.github.com/repos/JuliaLang/julia/subscribers","subscription_url":"https://api.github.com/repos/JuliaLang/julia/subscription","commits_url":"https://api.github.com/repos/JuliaLang/julia/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuliaLang/julia/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuliaLang/julia/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuliaLang/julia/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuliaLang/julia/contents/{+path}","compare_url":"https://api.github.com/repos/JuliaLang/julia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuliaLang/julia/merges","archive_url":"https://api.github.com/repos/JuliaLang/julia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuliaLang/julia/downloads","issues_url":"https://api.github.com/repos/JuliaLang/julia/issues{/number}","pulls_url":"https://api.github.com/repos/JuliaLang/julia/pulls{/number}","milestones_url":"https://api.github.com/repos/JuliaLang/julia/milestones{/number}","notifications_url":"https://api.github.com/repos/JuliaLang/julia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuliaLang/julia/labels{/name}","releases_url":"https://api.github.com/repos/JuliaLang/julia/releases{/id}","deployments_url":"https://api.github.com/repos/JuliaLang/julia/deployments","created_at":"2011-04-21T07:01:50Z","updated_at":"2020-12-08T01:59:29Z","pushed_at":"2020-12-08T01:45:18Z","git_url":"git://github.com/JuliaLang/julia.git","ssh_url":"git@github.com:JuliaLang/julia.git","clone_url":"https://github.com/JuliaLang/julia.git","svn_url":"https://github.com/JuliaLang/julia","homepage":"https://julialang.org/","size":197019,"stargazers_count":30947,"watchers_count":30947,"language":"Julia","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4220,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":4008,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":4220,"open_issues":4008,"watchers":30947,"default_branch":"master","temp_clone_token":null,"organization":{"login":"JuliaLang","id":743164,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MzE2NA==","avatar_url":"https://avatars0.githubusercontent.com/u/743164?v=4","gravatar_id":"","url":"https://api.github.com/users/JuliaLang","html_url":"https://github.com/JuliaLang","followers_url":"https://api.github.com/users/JuliaLang/followers","following_url":"https://api.github.com/users/JuliaLang/following{/other_user}","gists_url":"https://api.github.com/users/JuliaLang/gists{/gist_id}","starred_url":"https://api.github.com/users/JuliaLang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuliaLang/subscriptions","organizations_url":"https://api.github.com/users/JuliaLang/orgs","repos_url":"https://api.github.com/users/JuliaLang/repos","events_url":"https://api.github.com/users/JuliaLang/events{/privacy}","received_events_url":"https://api.github.com/users/JuliaLang/received_events","type":"Organization","site_admin":false},"network_count":4220,"subscribers_count":993}"
status: 200
request:
txcount: 1
headers:
- User-Agent: "GitHub-jl"
- Host: "api.github.com"
- Content-Length: "0"
body: ""
method: "GET"
target: "/repos/JuliaLang/julia"
version: "1.1.0"
version: "1.1.0"
format: "1.0.0" |
That's unfortunate. Thanks for the report! There's actually already a partial fix in master, but YAML hasn't had a release in quite some time. I'll try to poke some people. |
I can make a release once #91 is merged. |
Thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MWE:
Version info:
Project:
Manifest:
The text was updated successfully, but these errors were encountered: