GETTING ERROR 415 Unsupported Media Type for Content-Type="application/json; charset=UTF-8; version=1 - python-2.7

Getting error 415 Unsupported Media Type while passing charset= UTF-8 and vesion =1 with applicatin/json.
Please help.
I tried different combination of charset but its not working. When remove charset and version then it works. But i need to add version in content-type.

Related

Visual Studio WSDL.exe unable to convert ONVIF WSDL files

I am trying to convert the ONVIF WSDL files from https://www.onvif.org/profiles/specifications/ to C++.
But I keep getting similar errors about certain data types missing. For example, doing the following command:
wsdl /language:CPP /protocol:SOAP12 media.wsdl
I get the following error:
Error: Unable to import binding 'MediaBinding' from namespace 'http://www.onvif.org/ver10/media/wsdl'.
- Unable to import operation 'GetVideoSources'.
- The datatype 'http://www.onvif.org/ver10/schema:VideoSource' is missing.
And if I try doing with a URL like so:
wsdl /language:CPP /protocol:SOAP12 https://www.onvif.org/ver10/media/wsdl/media.wsdl
I get the following error:
Error: There was an error processing 'https://www.onvif.org/ver10/media/wsdl/media.wsdl'.
- There was an error downloading 'https://www.onvif.org/ver10/media/wsdl/media.wsdl'.
- The request was aborted: Could not create SSL/TLS secure channel.
This is using Visual Studio 2015.
I am not using gSOAP because this may be used commercially.
Answered here: https://github.com/onvif/specs/discussions/249
When using a URL, "http" must be used.
The schema validation errors are known and has to do with the Microsoft XML parser being being 1.0 where ONVIF is using 1.1.

Unhandled Promise Rejection: Error: abort(Error: WebAssembly.Module doesn't parse at byte xxx

I got a .wasm file with emscripten. It works on websites on desktop, but it doesn't work at mobile browsers and I got this error. I'm using;
-Emscripten 3.0.1
-OpenCV 4.5.3
How can I fix this problem?

I can't solve higher Pandoc version required error

I keep getting this error when I try to render and Rmd file
Erreur : pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).
but when I type pandoc_version() in console I get
rmarkdown::pandoc_available()
[1] TRUE
rmarkdown::pandoc_version()
[1] ‘2.7.2’

New Errors with Rmarkdown and pandoc-2.5 & 2.6 (cannot decode byte \xa9)

I recently uploaded a new version of an R package in which the R markdown vignettes work well enough on my Ubuntu system with pandoc 2.2.
Today I was notified by R CRAN checking of the following
This version fails on both Fedora Linux and macOS with pandoc 2.5
--- re-building ‘Rmarkdown.Rmd’ using rmarkdown
pandoc: Cannot decode byte '\xa9':
Data.Text.Internal.Encoding.streamDecodeUtf8With: Invalid UTF-8 stream
Error: processing vignette 'Rmarkdown.Rmd' failed with diagnostics:
pandoc document conversion failed with error 1
--- failed re-building ‘Rmarkdown.Rmd’
--- re-building ‘code_chunks.Rmd’ using rmarkdown
convert: profile 'icc': 'RGB ': RGB color space not permitted on
grayscale PNG `tmpout/p-chunk65-1.png' #
warning/png.c/MagickPNGWarningHandler/1672.
pandoc: Cannot decode byte '\xa9':
Data.Text.Internal.Encoding.streamDecodeUtf8With: Invalid UTF-8 stream
Error: processing vignette 'code_chunks.Rmd' failed with diagnostics:
pandoc document conversion failed with error 1
--- failed re-building ‘code_chunks.Rmd’
\xa9 is a Latin-1 copyright sign. The PNG error is seen only on macOS.
Unfortunately knitr/pandoc produce no debugging information, so this is
all I know.
It appears to me that the error about \xa9 is a wild goose chase.
The Pandoc instructions have changed. Replacing this old stanza
header-includes:
- \usepackage{xcolor}
- \usepackage{fancybox}
- \usepackage{calc}
- \usepackage{subfig}
With this new one solved the problem.
header-includes:
- |
```{=latex}
\usepackage{xcolor}
\usepackage{fancybox}
\usepackage{calc}
\usepackage{subfig}
```
After that, I do get a success with Pandoc 2.6.
At first I thought that I understood the problem, but then it happened again and I re-typed the new stanza entirely and Pandoc does not give the error anymore. So I am nonplussed.
I have not yet found an answer for the PNG problem on Macintosh.

TypeError: incompatible marshal file format (can't be read)

im using devise for my login in rails but whenever i visit localhost:3000/users/sign_in
im having this error
!! #<TypeError: incompatible marshal file format (can't be read)
format version 4.8 required; 91.91 given>
btw rails version is 4.1.1
Try deleting the .jekyll-cache folder and start a fresh Jekyll serve
Do git clean -d -x -f may can resolve the problem.