Skip to content

Instantly share code, notes, and snippets.

TypeError: Cannot read property 'gid' of null
at gid (/musicbrainz-server/root/statistics/Countries.js:54:65)
at Array.map (<anonymous>)
at map (/musicbrainz-server/root/statistics/Countries.js:53:23)
at processChild (/musicbrainz-server/node_modules/react-dom/cjs/react-dom-server.node.development.js:2122:14)
at resolve (/musicbrainz-server/node_modules/react-dom/cjs/react-dom-server.node.development.js:2048:5)
at ReactDOMServerRenderer.render (/musicbrainz-server/node_modules/react-dom/cjs/react-dom-server.node.development.js:2333:22)
at ReactDOMServerRenderer.read (/musicbrainz-server/node_modules/react-dom/cjs/react-dom-server.node.development.js:2307:19)
at Object.renderToString (/musicbrainz-server/node_modules/react-dom/cjs/react-dom-server.node.development.js:2679:25)
at renderToString (/musicbrainz-server/root/server/response.js:76:31)
@yvanzo
yvanzo / musicbrainz-website-test.log
Created January 23, 2019 14:12
test.musicbrainz.org website logs
2019-01-23T14:05:56.614702894Z starting new worker 466
2019-01-23T14:05:59.365220688Z Error while loading /home/musicbrainz/musicbrainz-server/app.psgi: The method 'begin' was not found in the inheritance hierarchy for MusicBrainz::Server::Controller::OAuth2 at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Class.pm line 1088
2019-01-23T14:05:59.365242219Z Class::MOP::Class::add_before_method_modifier('Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0xe3e9638)', 'begin', 'CODE(0xe454038)') called at /home/musicbrainz/carton-local/lib/perl5/MooseX/MethodAttributes/Role/Meta/Class.pm line 113
2019-01-23T14:05:59.365248168Z Class::MOP::Class:::around('CODE(0x2aee348)', 'Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0xe3e9638)', 'begin', 'CODE(0xe454038)') called at /home/musicbrainz/carton-local/lib/perl5/x86_64-linux-gnu-thread-multi/Class/MOP/Method/Wrapped.pm line 164
2019-01-23T14:05:59.365251079Z Moose::Meta::Class::__ANON__::SERIAL::1::_wrapped_add_before_method_modifier('M
root/static/scripts/account/components/EditProfileForm.js
289:19 warning JSX props should not use arrow functions react/jsx-no-bind
295:19 warning JSX props should not use arrow functions react/jsx-no-bind
301:21 warning JSX props should not use arrow functions react/jsx-no-bind
@yvanzo
yvanzo / url-rel-slugs.txt
Created March 16, 2019 17:36
MB URL relationship type slugs
allmusic
amazon
bandcamp
bandsintown
bbcmusic
blog
bookbrainz
cdbaby
crowdfunding
discography
@yvanzo
yvanzo / mb-incomplete-draft.dot
Created March 21, 2019 13:32
MusicBrainz (incomplete draft) repositories relationships
digraph G {
subgraph cluster_mb {
style=filled;
color=lightgrey;
node [style=filled,color=white];
"mb-rngpy";
"mb-solr";
"mbsssss";
"mmd-schema";
@yvanzo
yvanzo / instrument_descriptions.pot.diff
Last active April 10, 2019 10:29
Changes to instruments and instrument descriptions for localization on Transifex
diff --recursive '--unified=0' --color left/po/instrument_descriptions.pot right/po/instrument_descriptions.pot
--- left/po/instrument_descriptions.pot 2019-04-10 12:29:19.085420963 +0200
+++ right/po/instrument_descriptions.pot 2019-04-10 12:29:19.085420963 +0200
@@ -9 +8,0 @@
-msgid "A bullroarer consists of a piece of wood attached to a long cord which is then swung in a circle."
@@ -18 +16,0 @@
-msgid "A flute is an aerophone or reedless wind instrument that produces its sound from the flow of air across an opening."
@@ -28 +25,0 @@
-msgid "A lithophone is a musical instrument consisting of a rock or pieces of rock which are struck to produce musical notes."
@@ -34 +30,0 @@
@yvanzo
yvanzo / relationships.pot.diff
Last active April 10, 2019 08:27
Changes to relationship types for localization on Transifex
diff --recursive '--unified=9999' /tmp/git-difftool.wbHKpt/left/po/relationships.pot /tmp/potdiff.29ar/po/relationships.pot
--- left/po/relationships.pot 2019-04-10 10:26:06.805510263 +0200
+++ right/po/relationships.pot 2019-04-10 10:26:06.805510263 +0200
@@ -1,1310 +1,1335 @@
msgid "A social network page is a label's own page on a <a href=\"https://en.wikipedia.org/wiki/Social_networking_service\">social network</a> which only people involved with the label can post content to. Examples include Facebook pages, and accounts on Twitter, Instagram and Flickr."
msgid "A social network page is a page for a series on a <a href=\"https://en.wikipedia.org/wiki/Social_networking_service\">social network</a> which only people involved with the series can post content to. Examples include Facebook pages, and accounts on Twitter, Instagram and Flickr."
msgid "A social network page is a place's own page on a <a href=\"https://en.wikipedia.org/wiki/Social_networking_service\">social network</a> which only people invol
@yvanzo
yvanzo / statistics.pot.flat.diff
Created April 10, 2019 10:16
Changes to statistics for localization on Transifex
diff --recursive '--unified=0' --color /tmp/git-difftool.05q1V2/left/po/statistics.pot /tmp/potdiff.rXGN/po/statistics.pot
--- left/po/statistics.pot 2019-04-10 12:15:55.222097339 +0200
+++ right/po/statistics.pot 2019-04-10 12:15:55.222097339 +0200
@@ -4 +3,0 @@
-msgid "100%"
@@ -55,0 +55 @@
+msgid "Artists with gender set to not applicable"
@@ -242,0 +243,2 @@
+msgid "Gender Not Applicable"
+msgid "Gender not applicable:"
@yvanzo
yvanzo / sir.reindex.log
Created May 15, 2019 19:38
XML incompatible + no exit on keyboard interrupt
2019-05-15 13:12:32,157: Checking whether the versions of the Solr cores are supported
2019-05-15 13:12:44,462: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
Traceback (most recent call last):
File "sir/indexing.py", line 149, in _multiprocessed_import
for r in results:
File "/usr/local/lib/python2.7/multiprocessing/pool.py", line 668, in next
raise value
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
^CProcess Solr-1:
@yvanzo
yvanzo / sir-reindex-debug-excerpt.log
Created June 14, 2019 19:37
SIR reindex error on with “All strings must be XML compatible”
Solr-0 2019-06-14 19:05:24,470 DEBUG: Done sending data to Solr
Solr-0 2019-06-14 19:05:24,473 DEBUG: Sent data to Solr
Solr-0 2019-06-14 19:05:24,474 DEBUG: Sent 60 new documents. Total: 639540
Solr-0 2019-06-14 19:05:26,032 DEBUG: Done sending data to Solr
Solr-0 2019-06-14 19:05:26,032 DEBUG: Sent data to Solr
Solr-0 2019-06-14 19:05:26,033 DEBUG: Sent 60 new documents. Total: 639600
MainProcess 2019-06-14 19:05:35,395 ERROR: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
Traceback (most recent call last):
File "sir/indexing.py", line 149, in _multiprocessed_import
for r in results: