Page MenuHomePhabricator

API error templatedata-invalid-parse: Syntax error in JSON
Closed, InvalidPublic

Description

I'm trying to move some /doc subpage on my testwiki for testing transferbot.py, but I get error API error templatedata-invalid-parse: Syntax error in JSON when I want to transfer /doc subpages.

1Moving [[sr:Шаблон:Cite report/док]] to [[testniwiki:sr:Шаблон:Cite report/док]]...
2Getting page text.
3Getting edit history.
4Putting edit history.
5Putting page text.
6WARNING: API error templatedata-invalid-parse: Syntax error in JSON.
7API Error: query=
8("{'action': ['edit'], 'title': [Page('Шаблон:Cite report/док')], 'text': "
9 "['{{Documentation subpage}}\\n<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS "
10 "LINE -->\\n{{csdoc', 'lua}}\\n{{csdoc', 'cs1}}\\n\\n{{csdoc', 'lead', "
11 "'unpublished reports by government departments, instrumentalities, operated "
12 'companies, etc.}}\\n:These reports are to be published in the Wikipedia '
13 'sense of verifiability: a responsible organisation must have fact checked '
14 'them; and the selection process for publication must not have been '
15 'automatic.\\n:Examples include: government printed reports which lack ISSN '
16 'or ISBN numbers, and reports from major semi-governmental instrumentalities '
17 'that are freely circulating and available for verification, but which lack a '
18 "formal ISBN / ISSN publication process.\\n\\n=== Usage ===\\n{{csdoc', "
19 "'usage}}\\n\\n{{csdoc', 'usage full}}\\n:<code><nowiki>{{cite report ', "
20 "'author= ', 'author-link= ', 'authors= ', 'date= ', 'title= ', 'url= ', "
21 "'publisher= ', 'page= ', 'docket= ', 'access-date= ', 'quote= "
22 "}}</nowiki></code>\\n{{end}}\\n\\n{{csdoc', 'usage vertical}}\\n<pre "
23 'style="margin:0; border:none;">\\n{{cite report\\n \', \' author = <!-- '
24 "or ', 'last= and ', 'first= -->\\n ', ' author-link =\\n ', ' authors "
25 "=\\n ', ' date = <!-- or ', 'month= and ', 'year= -->\\n ', ' "
26 "title = \\n ', ' url = \\n ', ' publisher = \\n ', ' "
27 "format =\\n ', ' others =\\n ', ' edition =\\n ', ' "
28 "location =\\n ', ' chapter =\\n ', ' section =\\n ', ' "
29 "page =\\n ', ' pages =\\n ', ' docket =\\n ', ' "
30 "access-date = \\n ', ' quote =\\n}}\\n</pre>\\n{{csdoc', 'usage "
31 'vertical mid}}\\n<pre style="margin:0; border:none;">\\n</pre>\\n{{csdoc\', '
32 '\'usage vertical mid}}\\n<pre style="margin:0; '
33 'border:none;">\\n</pre>\\n{{csdoc\', \'usage vertical '
34 "end}}\\n\\n===Example===\\n{{markup2\\n', 'm=<nowiki>{{cite report ', "
35 "'title=Rhode Island Roads ', 'publisher=Rhode Island Department of Public "
36 "Works ', 'date=1956}}</nowiki>\\n', 'r={{cite report ', 'title=Rhode Island "
37 "Roads ', 'publisher=Rhode Island Department of Public Works ', "
38 "'date=1956}}\\n}}\\n\\n==Parameters==\\n===Syntax===\\n{{csdoc', "
39 "'syntax}}\\n\\n{{csdoc', 'sep_period}}\\n\\n===COinS===\\n{{csdoc', "
40 "'coins}}\\n\\n===Deprecated===\\n{{csdoc', "
41 "'deprecated}}\\n\\n===Description===\\n====Authors====\\n{{csdoc', 'author', "
42 "'others=yes}}\\n\\n====Date====\\n{{csdoc', "
43 "'date}}\\n\\n====Editors====\\n{{csdoc', "
44 "'editor}}\\n\\n====Title====\\n{{csdoc', 'title}}\\n{{csdoc', "
45 "'language}}\\n\\n====URL====\\n{{csdoc', "
46 "'url}}\\n\\n====Periodical====\\n{{csdoc', 'journal', "
47 "'department=yes}}\\n\\n====Publisher====\\n{{csdoc', "
48 "'publisher}}\\n\\n====Edition, series, volume====\\n{{csdoc', "
49 "'edition}}\\n{{csdoc', 'series}}\\n{{csdoc', 'volume}}\\n\\n====In-source "
50 "locations====\\n{{csdoc', 'pages', "
51 '\'work=y}}\\n\\n====Identifiers====\\n{{csdoc\', "id1}}\\n* '
52 '\'\'\'docket\'\'\': Docket number.\\n{{csdoc", \'id2}}\\n\\n====Subscription '
53 "or registration required====\\n{{csdoc', 'registration}}\\n\\n====Lay "
54 "summary====\\n{{anchor', 'Laysummary}}{{csdoc', "
55 "'lay}}\\n\\n====Quote====\\n{{csdoc', "
56 "'quote}}\\n\\n====Anchor====\\n{{csdoc', 'ref}}\\n\\n====Display "
57 "options====\\n{{csdoc', 'display}}\\n\\n{{Citation Style 1}}\\n{{Wikipedia "
58 "referencing}}\\n{{UF-COinS}}\\n\\n<includeonly>\\n{{#ifeq:{{SUBPAGENAME}}', "
59 "'sandbox', '', '\\n[[Category:Citation Style 1 templates', "
60 '\'R]]\\n}}\\n</includeonly>\\n==TemplateData==\\n{{TemplateDataHeader}}\\n<templatedata>\\n{\\n\\t"description": '
61 '"This template formats a citation to an article in a magazine or journal, '
62 'using the provided source information (e.g. journal name, author, title, '
63 'issue, URL) and various formatting options.",\\n\\t"params": '
64 '{\\n\\t\\t"url": {\\n\\t\\t\\t"label": "URL",\\n\\t\\t\\t"description": "The '
65 'URL of the online location where the text of the publication can be '
66 'found",\\n\\t\\t\\t"type": "line",\\n\\t\\t\\t"suggested": '
67 'true,\\n\\t\\t\\t"aliases": '
68 '[\\n\\t\\t\\t\\t"URL"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"title": '
69 '{\\n\\t\\t\\t"label": "Title",\\n\\t\\t\\t"description": "The title of the '
70 'article; can be wikilinked to an existing Wikipedia article or url may be '
71 'used to add an external link, but not both. Displays in '
72 'quotes.",\\n\\t\\t\\t"type": "content",\\n\\t\\t\\t"required": '
73 'true\\n\\t\\t},\\n\\t\\t"last": {\\n\\t\\t\\t"label": "Last '
74 'name",\\n\\t\\t\\t"description": "The surname of the author; don\\\'t '
75 "wikilink, use \\'authorlink\\'; can suffix with a numeral to add additional "
76 'authors",\\n\\t\\t\\t"aliases": '
77 '[\\n\\t\\t\\t\\t"author",\\n\\t\\t\\t\\t"author1",\\n\\t\\t\\t\\t"authors",\\n\\t\\t\\t\\t"last1"\\n\\t\\t\\t],\\n\\t\\t\\t"suggested": '
78 'true,\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"first": '
79 '{\\n\\t\\t\\t"label": "First name",\\n\\t\\t\\t"description": "Given or '
80 "first name, middle names, or initials of the author; don\\'t wikilink, use "
81 "\\'authorlink\\'; can suffix with a numeral to add additional "
82 'authors",\\n\\t\\t\\t"aliases": '
83 '[\\n\\t\\t\\t\\t"first1"\\n\\t\\t\\t],\\n\\t\\t\\t"suggested": '
84 'true,\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"last2": '
85 '{\\n\\t\\t\\t"label": "Last name 2",\\n\\t\\t\\t"description": "The surname '
86 "of the second author; don\\'t wikilink, use "
87 '\\\'authorlink2\\\'.",\\n\\t\\t\\t"aliases": '
88 '[\\n\\t\\t\\t\\t"author2"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
89 '"line"\\n\\t\\t},\\n\\t\\t"first2": {\\n\\t\\t\\t"label": "First name '
90 '2",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
91 'initials of the second author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
92 '"line"\\n\\t\\t},\\n\\t\\t"date": {\\n\\t\\t\\t"label": "Source '
93 'date",\\n\\t\\t\\t"description": "Full date of the source; do not '
94 'wikilink",\\n\\t\\t\\t"type": "date",\\n\\t\\t\\t"required": '
95 'true\\n\\t\\t},\\n\\t\\t"publisher": {\\n\\t\\t\\t"label": '
96 '"Publisher",\\n\\t\\t\\t"description": "Name of the publisher; displays '
97 'after title",\\n\\t\\t\\t"type": "content"\\n\\t\\t},\\n\\t\\t"issue": '
98 '{\\n\\t\\t\\t"label": "Issue",\\n\\t\\t\\t"description": "Issue identifier '
99 'when the source is part of a series that is published '
100 'periodically",\\n\\t\\t\\t"type": "line",\\n\\t\\t\\t"suggested": '
101 'true\\n\\t\\t},\\n\\t\\t"doi": {\\n\\t\\t\\t"label": '
102 '"DOI",\\n\\t\\t\\t"description": "Digital Object Identifier; begins with '
103 '\\\'10.\\\'",\\n\\t\\t\\t"type": "string",\\n\\t\\t\\t"suggested": '
104 'true\\n\\t\\t},\\n\\t\\t"doi-broken-date": {\\n\\t\\t\\t"label": "DOI broken '
105 'date",\\n\\t\\t\\t"description": "The date that the DOI was determined to be '
106 'broken",\\n\\t\\t\\t"type": "date"\\n\\t\\t},\\n\\t\\t"location": '
107 '{\\n\\t\\t\\t"label": "Location of publication",\\n\\t\\t\\t"description": '
108 '"Geographical place of publication; usually not '
109 'wikilinked.",\\n\\t\\t\\t"type": '
110 '"string"\\n\\t\\t},\\n\\t\\t"publication-date": {\\n\\t\\t\\t"label": '
111 '"Publication date",\\n\\t\\t\\t"description": "Date of publication when '
112 'different from the date the work was written; do not '
113 'wikilink",\\n\\t\\t\\t"type": "date"\\n\\t\\t},\\n\\t\\t"edition": '
114 '{\\n\\t\\t\\t"label": "Edition",\\n\\t\\t\\t"description": "When the '
115 "publication has more than one edition; for example: \\'2nd\\', \\'Revised\\' "
116 'etc.; suffixed with \\\' ed.\\\'",\\n\\t\\t\\t"type": '
117 '"line"\\n\\t\\t},\\n\\t\\t"volume": {\\n\\t\\t\\t"label": '
118 '"Volume",\\n\\t\\t\\t"description": "For one publication published in '
119 'several volumes",\\n\\t\\t\\t"type": "line",\\n\\t\\t\\t"suggested": '
120 'true\\n\\t\\t},\\n\\t\\t"page": {\\n\\t\\t\\t"label": '
121 '"Page",\\n\\t\\t\\t"description": "Page in the source that supports the '
122 'content; displays after \\\'p.\\\'",\\n\\t\\t\\t"type": '
123 '"line"\\n\\t\\t},\\n\\t\\t"pages": {\\n\\t\\t\\t"label": '
124 '"Pages",\\n\\t\\t\\t"description": "Pages in the source that support the '
125 'content (not an indication of the number of pages in the source; displays '
126 'after \\\'pp.\\\'",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"language": '
127 '{\\n\\t\\t\\t"label": "Language",\\n\\t\\t\\t"description": "The language in '
128 'which the source is written, if not English; use the full language name; do '
129 'not use icons or templates",\\n\\t\\t\\t"type": '
130 '"content"\\n\\t\\t},\\n\\t\\t"arxiv": {\\n\\t\\t\\t"label": "arXiv '
131 'identifier",\\n\\t\\t\\t"description": "An identifier for arXive electronic '
132 'preprints of scientific papers",\\n\\t\\t\\t"type": '
133 '"line"\\n\\t\\t},\\n\\t\\t"asin": {\\n\\t\\t\\t"label": '
134 '"ASIN",\\n\\t\\t\\t"description": "Amazon Standard Identification Number; 10 '
135 'characters",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"asin-tld": '
136 '{\\n\\t\\t\\t"label": "ASIN TLD",\\n\\t\\t\\t"description": "ASIN top-level '
137 'domain for Amazon sites other than the US",\\n\\t\\t\\t"type": '
138 '"line"\\n\\t\\t},\\n\\t\\t"bibcode": {\\n\\t\\t\\t"label": '
139 '"Bibcode",\\n\\t\\t\\t"description": "Bibliographic Reference Code '
140 '(REFCODE); 19 characters",\\n\\t\\t\\t"type": '
141 '"line"\\n\\t\\t},\\n\\t\\t"biorxiv": {\\n\\t\\t\\t"label": '
142 '"biorXiv",\\n\\t\\t\\t"description": "biorXiv identifier; 6 '
143 'digits",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"citeseerx": '
144 '{\\n\\t\\t\\t"label": "CiteSeerX",\\n\\t\\t\\t"description": "CiteSeerX '
145 "identifier; found after the \\'doi=\\' query "
146 'parameter",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"isbn": '
147 '{\\n\\t\\t\\t"label": "ISBN",\\n\\t\\t\\t"description": "International '
148 'Standard Book Number; use the 13-digit ISBN where '
149 'possible",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"issn": '
150 '{\\n\\t\\t\\t"label": "ISSN",\\n\\t\\t\\t"description": "International '
151 'Standard Serial Number; 8 characters; may be split into two groups of four '
152 'using a hyphen",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"jfm": '
153 '{\\n\\t\\t\\t"label": "jfm code",\\n\\t\\t\\t"description": "Jahrbuch über '
154 'die Fortschritte der Mathematik classification code",\\n\\t\\t\\t"type": '
155 '"line"\\n\\t\\t},\\n\\t\\t"jstor": {\\n\\t\\t\\t"label": '
156 '"JSTOR",\\n\\t\\t\\t"description": "JSTOR identifier",\\n\\t\\t\\t"type": '
157 '"line"\\n\\t\\t},\\n\\t\\t"lccn": {\\n\\t\\t\\t"label": '
158 '"LCCN",\\n\\t\\t\\t"description": "Library of Congress Control '
159 'Number",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"mr": '
160 '{\\n\\t\\t\\t"label": "MR",\\n\\t\\t\\t"description": "Mathematical Reviews '
161 'identifier",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"oclc": '
162 '{\\n\\t\\t\\t"label": "OCLC",\\n\\t\\t\\t"description": "Online Computer '
163 'Library Center number",\\n\\t\\t\\t"type": "number"\\n\\t\\t},\\n\\t\\t"ol": '
164 '{\\n\\t\\t\\t"label": "OL",\\n\\t\\t\\t"description": "Open Library '
165 'identifier",\\n\\t\\t\\t"type": "line"\\n\\t\\t},\\n\\t\\t"osti": '
166 '{\\n\\t\\t\\t"label": "OSTI",\\n\\t\\t\\t"description": "Office of '
167 'Scientific and Technical Information identifier",\\n\\t\\t\\t"type": '
168 '"line"\\n\\t\\t},\\n\\t\\t"pmc": {\\n\\t\\t\\t"label": '
169 '"PMC",\\n\\t\\t\\t"description": "PubMed Center article '
170 'number",\\n\\t\\t\\t"type": "number"\\n\\t\\t},\\n\\t\\t"pmid": '
171 '{\\n\\t\\t\\t"label": "PMID",\\n\\t\\t\\t"description": "PubMed Unique '
172 'Identifier",\\n\\t\\t\\t"suggested": true,\\n\\t\\t\\t"type": '
173 '"line"\\n\\t\\t},\\n\\t\\t"id": {\\n\\t\\t\\t"label": '
174 '"id",\\n\\t\\t\\t"description": "A unique identifier used where none of the '
175 'specialized ones are applicable",\\n\\t\\t\\t"type": '
176 '"line"\\n\\t\\t},\\n\\t\\t"docket": {\\n\\t\\t\\t"label": '
177 '"docket",\\n\\t\\t\\t"description": "Docket number",\\n\\t\\t\\t"type": '
178 '"line"\\n\\t\\t},\\n\\t\\t"quote": {\\n\\t\\t\\t"label": '
179 '"Quote",\\n\\t\\t\\t"description": "Relevant text quoted from the source; '
180 'displays last, enclosed in quotes; needs to include terminating '
181 'punctuation",\\n\\t\\t\\t"type": "content"\\n\\t\\t},\\n\\t\\t"last3": '
182 '{\\n\\t\\t\\t"label": "Last name 3",\\n\\t\\t\\t"description": "The surname '
183 "of the third author; don\\'t wikilink, use "
184 '\\\'authorlink3\\\'.",\\n\\t\\t\\t"aliases": '
185 '[\\n\\t\\t\\t\\t"author3"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
186 '"line"\\n\\t\\t},\\n\\t\\t"first3": {\\n\\t\\t\\t"label": "First name '
187 '3",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
188 'initials of the third author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
189 '"line"\\n\\t\\t},\\n\\t\\t"last4": {\\n\\t\\t\\t"label": "Last name '
190 '4",\\n\\t\\t\\t"description": "The surname of the forth author; don\\\'t '
191 'wikilink, use \\\'authorlink4\\\'.",\\n\\t\\t\\t"aliases": '
192 '[\\n\\t\\t\\t\\t"author4"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
193 '"line"\\n\\t\\t},\\n\\t\\t"first4": {\\n\\t\\t\\t"label": "First name '
194 '4",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
195 'initials of the forth author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
196 '"line"\\n\\t\\t},\\n\\t\\t"last5": {\\n\\t\\t\\t"label": "Last name '
197 '5",\\n\\t\\t\\t"description": "The surname of the fifth author; don\\\'t '
198 'wikilink, use \\\'authorlink5\\\'.",\\n\\t\\t\\t"aliases": '
199 '[\\n\\t\\t\\t\\t"author5"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
200 '"line"\\n\\t\\t},\\n\\t\\t"first5": {\\n\\t\\t\\t"label": "First name '
201 '5",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
202 'initials of the fifth author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
203 '"line"\\n\\t\\t},\\n\\t\\t"last6": {\\n\\t\\t\\t"label": "Last name '
204 '6",\\n\\t\\t\\t"description": "The surname of the sixth author; don\\\'t '
205 'wikilink, use \\\'authorlink6\\\'.",\\n\\t\\t\\t"aliases": '
206 '[\\n\\t\\t\\t\\t"author6"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
207 '"line"\\n\\t\\t},\\n\\t\\t"first6": {\\n\\t\\t\\t"label": "First name '
208 '6",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
209 'initials of the sixth author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
210 '"line"\\n\\t\\t},\\n\\t\\t"last7": {\\n\\t\\t\\t"label": "Last name '
211 '7",\\n\\t\\t\\t"description": "The surname of the seventh author; don\\\'t '
212 'wikilink, use \\\'authorlink7\\\'.",\\n\\t\\t\\t"aliases": '
213 '[\\n\\t\\t\\t\\t"author7"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
214 '"line"\\n\\t\\t},\\n\\t\\t"first7": {\\n\\t\\t\\t"label": "First name '
215 '7",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
216 'initials of the seventh author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
217 '"line"\\n\\t\\t},\\n\\t\\t"last8": {\\n\\t\\t\\t"label": "Last name '
218 '8",\\n\\t\\t\\t"description": "The surname of the eighth author; don\\\'t '
219 'wikilink, use \\\'authorlink8\\\'.",\\n\\t\\t\\t"aliases": '
220 '[\\n\\t\\t\\t\\t"author8"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
221 '"line"\\n\\t\\t},\\n\\t\\t"first8": {\\n\\t\\t\\t"label": "First name '
222 '8",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
223 'initials of the eighth author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
224 '"line"\\n\\t\\t},\\n\\t\\t"last9": {\\n\\t\\t\\t"label": "Last name '
225 '9",\\n\\t\\t\\t"description": "The surname of the ninth author; don\\\'t '
226 "wikilink, use \\'authorlink9\\'. If nine authors are defined, then only "
227 "eight will show and \\'et al.\\' will show in place of the last "
228 'author.",\\n\\t\\t\\t"aliases": '
229 '[\\n\\t\\t\\t\\t"author9"\\n\\t\\t\\t],\\n\\t\\t\\t"type": '
230 '"line"\\n\\t\\t},\\n\\t\\t"first9": {\\n\\t\\t\\t"label": "First name '
231 '9",\\n\\t\\t\\t"description": "Given or first name, middle names, or '
232 'initials of the ninth author; don\\\'t wikilink.",\\n\\t\\t\\t"type": '
233 '"line"\\n\\t\\t},\\n\\t\\t"author-link": {\\n\\t\\t\\t"label": "Author '
234 'link",\\n\\t\\t\\t"description": "Title of existing Wikipedia article about '
235 'the author; can suffix with a numeral to add additional '
236 'authors",\\n\\t\\t\\t"type": "wiki-page-name",\\n\\t\\t\\t"aliases": '
237 '[\\n\\t\\t\\t\\t"authorlink"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link2": '
238 '{\\n\\t\\t\\t"label": "Author link 2",\\n\\t\\t\\t"description": "Title of '
239 'existing Wikipedia article about the second author.",\\n\\t\\t\\t"type": '
240 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
241 '[\\n\\t\\t\\t\\t"author2-link",\\n\\t\\t\\t\\t"authorlink2"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"access-date": '
242 '{\\n\\t\\t\\t"label": "URL access date",\\n\\t\\t\\t"description": "The full '
243 'date when the original URL was accessed; do not '
244 'wikilink",\\n\\t\\t\\t"type": "date",\\n\\t\\t\\t"suggested": '
245 'true,\\n\\t\\t\\t"aliases": '
246 '[\\n\\t\\t\\t\\t"accessdate"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"archive-url": '
247 '{\\n\\t\\t\\t"label": "Archive URL",\\n\\t\\t\\t"description": "The URL of '
248 'an archived copy of a web page, if or in case the URL becomes unavailable; '
249 'requires \\\'archivedate\\\'",\\n\\t\\t\\t"type": '
250 '"line",\\n\\t\\t\\t"aliases": '
251 '[\\n\\t\\t\\t\\t"archiveurl"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link3": '
252 '{\\n\\t\\t\\t"label": "Author link 3",\\n\\t\\t\\t"description": "Title of '
253 'existing Wikipedia article about the third author.",\\n\\t\\t\\t"type": '
254 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
255 '[\\n\\t\\t\\t\\t"author3-link",\\n\\t\\t\\t\\t"authorlink3"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link4": '
256 '{\\n\\t\\t\\t"label": "Author link 4",\\n\\t\\t\\t"description": "Title of '
257 'existing Wikipedia article about the forth author.",\\n\\t\\t\\t"type": '
258 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
259 '[\\n\\t\\t\\t\\t"author4-link",\\n\\t\\t\\t\\t"authorlink4"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link5": '
260 '{\\n\\t\\t\\t"label": "Author link 5",\\n\\t\\t\\t"description": "Title of '
261 'existing Wikipedia article about the sixth author.",\\n\\t\\t\\t"type": '
262 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
263 '[\\n\\t\\t\\t\\t"author5-link",\\n\\t\\t\\t\\t"authorlink5"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link6": '
264 '{\\n\\t\\t\\t"label": "Author link 6",\\n\\t\\t\\t"description": "Title of '
265 'existing Wikipedia article about the sixth author.",\\n\\t\\t\\t"type": '
266 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
267 '[\\n\\t\\t\\t\\t"author6-link",\\n\\t\\t\\t\\t"authorlink6"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link7": '
268 '{\\n\\t\\t\\t"label": "Author link 7",\\n\\t\\t\\t"description": "Title of '
269 'existing Wikipedia article about the seventh author.",\\n\\t\\t\\t"type": '
270 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
271 '[\\n\\t\\t\\t\\t"author7-link",\\n\\t\\t\\t\\t"authorlink7"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link8": '
272 '{\\n\\t\\t\\t"label": "Author link 8",\\n\\t\\t\\t"description": "Title of '
273 'existing Wikipedia article about the eighth author.",\\n\\t\\t\\t"type": '
274 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
275 '[\\n\\t\\t\\t\\t"author8-link",\\n\\t\\t\\t\\t"authorlink8"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"author-link9": '
276 '{\\n\\t\\t\\t"label": "Author link 9",\\n\\t\\t\\t"description": "Title of '
277 'existing Wikipedia article about the ninth author.",\\n\\t\\t\\t"type": '
278 '"wiki-page-name",\\n\\t\\t\\t"aliases": '
279 '[\\n\\t\\t\\t\\t"author9-link",\\n\\t\\t\\t\\t"authorlink9"\\n\\t\\t\\t]\\n\\t\\t},\\n\\t\\t"format": '
280 '{\\n\\t\\t\\t"label": "Format",\\n\\t\\t\\t"description": "Format of the '
281 "work referred to by \\'url\\' (\\'url\\' is required when using "
282 "\\'format\\'); examples: PDF, DOC, XLS; do not specify "
283 'HTML",\\n\\t\\t\\t"type": "content"\\n\\t\\t},\\n\\n\\t\\t"url-access": '
284 '{\\n\\t\\t\\t"label": "URL access level",\\n\\t\\t\\t"description": '
285 '"Classification of the access restrictions on the URL (\\\'registration\\\', '
286 '\\\'subscription\\\' or \\\'limited\\\')",\\n\\t\\t\\t"type": '
287 '"string"\\n\\t\\t},\\n\\t\\t"bibcode-access": {\\n\\t\\t\\t"label": "Bibcode '
288 'access level",\\n\\t\\t\\t"description": "If the full text is available from '
289 'ADS via this Bibcode, type \\\'free\\\'.",\\n\\t\\t\\t"type": '
290 '"string"\\n\\t\\t},\\n\\t\\t"doi-access": {\\n\\t\\t\\t"label": "DOI access '
291 'level",\\n\\t\\t\\t"description": "If the full text is free to read via the '
292 'DOI, type \\\'free\\\'.",\\n\\t\\t\\t"type": '
293 '"string"\\n\\t\\t},\\n\\t\\t"hdl-access": {\\n\\t\\t\\t"label": "HDL access '
294 'level",\\n\\t\\t\\t"description": "If the full text is free to read via the '
295 'HDL, type \\\'free\\\'.",\\n\\t\\t\\t"type": '
296 '"string"\\n\\t\\t},\\n\\t\\t"jstor-access": {\\n\\t\\t\\t"label": "Jstor '
297 'access level",\\n\\t\\t\\t"description": "If the full text is free to read '
298 'on Jstor, type \\\'free\\\'.",\\n\\t\\t\\t"type": '
299 '"string"\\n\\t\\t},\\n\\t\\t"ol-access": {\\n\\t\\t\\t"label": "OpenLibrary '
300 'access level",\\n\\t\\t\\t"description": "If the full text is free to read '
301 'on OpenLibrary, type \\\'free\\\'.",\\n\\t\\t\\t"type": '
302 '"string"\\n\\t\\t},\\n\\t\\t"osti-access": {\\n\\t\\t\\t"label": "HDL access '
303 'level",\\n\\t\\t\\t"description": "If the full text is free to read on OSTI, '
304 'type \\\'free\\\'.",\\n\\t\\t\\t"type": '
305 '"string"\\n\\t\\t},\\n\\t},\\n\\t"maps": {\\n\\t\\t"citoid": '
306 '{\\n\\t\\t\\t"title": "title",\\n\\t\\t\\t"url": '
307 '"url",\\n\\t\\t\\t"institution": "publisher",\\n\\t\\t\\t"publisher": '
308 '"publisher",\\n\\t\\t\\t"date": "date",\\n\\t\\t\\t"place": '
309 '"location",\\n\\t\\t\\t"PMCID": "pmc",\\n\\t\\t\\t"PMID": '
310 '"pmid",\\n\\t\\t\\t"pages": "pages",\\n\\t\\t\\t"number": '
311 '"issue",\\n\\t\\t\\t"reportNumber": "issue",\\n\\t\\t\\t"DOI": '
312 '"doi",\\n\\t\\t\\t"language": "language",\\n\\t\\t\\t"author": '
313 '[\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first",\\n\\t\\t\\t\\t\\t"last"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first2",\\n\\t\\t\\t\\t\\t"last2"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first3",\\n\\t\\t\\t\\t\\t"last3"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first4",\\n\\t\\t\\t\\t\\t"last4"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first5",\\n\\t\\t\\t\\t\\t"last5"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first6",\\n\\t\\t\\t\\t\\t"last6"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first7",\\n\\t\\t\\t\\t\\t"last7"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first8",\\n\\t\\t\\t\\t\\t"last8"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t[\\n\\t\\t\\t\\t\\t"first9",\\n\\t\\t\\t\\t\\t"last9"\\n\\t\\t\\t\\t]\\n\\t\\t\\t]\\n\\t\\t}\\n\\t}\\n}\\n</templatedata>\'], '
314 "'token': ['6db70b8c5e3ac8b2f56423259d84fc965f8985aa+\\\\'], 'summary': "
315 "['Moved page from [[wikipedia:sr:Шаблон:Cite report/док]]'], 'bot': [False], "
316 "'recreate': [True], 'createonly': [False], 'nocreate': [False], 'minor': "
317 "[True], 'notminor': [False], 'assert': ['user'], 'maxlag': ['5'], 'format': "
318 "['json']}")
319 response=
320{'error': {'code': 'templatedata-invalid-parse', 'info': 'Syntax error in JSON.', 'help': 'See https://testni-wiki.cf/api.phpfor API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.'}}
321Error saving page [[testniwiki:sr:Шаблон:Cite report/док]] (templatedata-invalid-parse: Syntax error in JSON.
322[help: See https://testni-wiki.cf/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.])
323
324Traceback (most recent call last):
325 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 99, in handle
326 func(self, *args, **kwargs)
327 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 1315, in _save
328 watch=watch, bot=botflag, **kwargs)
329 File "/srv/paws/pwb/pywikibot/site/_decorators.py", line 94, in callee
330 return fn(self, *args, **kwargs)
331 File "/srv/paws/pwb/pywikibot/site/__init__.py", line 5202, in editpage
332 result = req.submit()
333 File "/srv/paws/pwb/pywikibot/data/api.py", line 2078, in submit
334 raise APIError(**result['error'])
335pywikibot.data.api.APIError: templatedata-invalid-parse: Syntax error in JSON.
336[help: See https://testni-wiki.cf/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.]Traceback(most recent call last):
337 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 99, in handle
338 func(self, *args, **kwargs)
339 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 1315, in _save
340 watch=watch, bot=botflag, **kwargs)
341 File "/srv/paws/pwb/pywikibot/site/_decorators.py", line 94, in callee
342 return fn(self, *args, **kwargs)
343 File "/srv/paws/pwb/pywikibot/site/__init__.py", line 5202, in editpage
344 result = req.submit()
345 File "/srv/paws/pwb/pywikibot/data/api.py", line 2078, in submit
346 raise APIError(**result['error'])
347pywikibot.data.api.APIError: templatedata-invalid-parse: Syntax error in JSON.
348[help: See https://testni-wiki.cf/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.]
349
350During handling of the above exception, another exception occurred:
351
352Traceback (most recent call last):
353 File "pwb.py", line 360, in <module>
354 if not main():
355 File "pwb.py", line 355, in main
356 file_package)
357 File "pwb.py", line 74, in run_python_file
358 main_mod.__dict__)
359 File "./scripts/transferbot.py", line 177, in <module>
360 main()
361 File "./scripts/transferbot.py", line 173, in main
362 targetpage.put(text, summary=summary)
363 File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1434, in wrapper
364 return obj(*__args, **__kw)
365 File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1434, in wrapper
366 return obj(*__args, **__kw)
367 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 1380, in put
368 **kwargs)
369 File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1434, in wrapper
370 return obj(*__args, **__kw)
371 File "/srv/paws/pwb/pywikibot/tools/__init__.py", line 1434, in wrapper
372 return obj(*__args, **__kw)
373 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 1304, in save
374 cc=apply_cosmetic_changes, quiet=quiet, **kwargs)
375 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 120, in wrapper
376 handle(func, self, *args, **kwargs)
377 File "/srv/paws/pwb/pywikibot/page/__init__.py", line 112, in handle
378 raise pywikibot.OtherPageSaveError(self, err)
379pywikibot.exceptions.OtherPageSaveError: Edit to page [[testniwiki:sr:Шаблон:Cite report/док]] failed:
380templatedata-invalid-parse: Syntax error in JSON.
381[help: See https://testni-wiki.cf/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.]
382Dropped throttle(s).
383Closing network session.
384CRITICAL: Exiting due to uncaught exception <class 'pywikibot.exceptions.OtherPageSaveError'>
385Network session closed.
386@PAWS:/srv/paws/pwb$

I'm not really sure why this happens. Is this mistake on-wiki or something else?

Steps to reproduce:
Execute this in your downloaded pywikibot: python pwb.py transferbot -family:wikipedia -lang:sr -tofamily:yourfamily -lang:lang_of_your_family -page:"Template:Cite report/док" -v

Note: Replace yourfamily with family of wiki on which you want to transfer this, and lang_of_your_family with lang of wiki.

Expected behaviour:
Page should be transfered without any errors.

Actual behaviour:
Script stops executing and pywikibot shows error (see output above).

Event Timeline

I tried to validate the json data on https://jsonlint.com/

Error: Parse error on line 446:
...pe": "string" }, }, "maps": { "cit
---------------------^
Expecting 'STRING', got '}'

I think you have an extra comma here:

		"osti-access": {
			"label": "HDL access level",
			"description": "If the full text is free to read on OSTI, type 'free'.",
			"type": "string"
		},      <---- extra comma ?!
	},

Thanks @Mpaa, so problem is in on-wiki pages?

Seems so, could you try to fix the page and retry?

Seems so, could you try to fix the page and retry?

T256574 happens. But I've copied the content of same page from enwiki to srwiki, tried to transfer page again, and works. So problem is probably in some /doc subpages on srwiki.

As this isn't issue with pywikibot, I'm closing task as invalid.