action=raw is current not supported for Wikibase items. The ContentHandler branch will send a 406 Not Acceptable response if action=raw is used with non-text content.
This was done after some discussion on MediaWiki-General, the reasoning being that
a) sending anon editable data with potentially dangerous mime types is a bad idea
b) action=raw is a legacy interface and really deprecated
action=raw could, in theory, just return a serialized version of the content, using the gen= parameter as a hint to how to serialize the content. The benefits and downsides of this should be re-assessed.
Version: master
Severity: normal