Questions tagged [malformed]

182 questions
47
votes
2 answers

Javascript decodeURI(Component) malformed uri exception

I entered the following in Chrome's console: decodeURIComponent('a%AFc'); Instead of resulting to a0xAFc, it caused a URIError exception (malformed uri). I've heard several excuses why this may be possible, but what I don't understand is why? The…
Christian
  • 27,509
  • 17
  • 111
  • 155
43
votes
7 answers

Malformed or corrupted AST file

I have a problem I don't know why did it happen in the first place but most probably because I've pressed move to trash to some system frameworks by mistake. I got an error that says: malformed or corrupted AST file: 'could not find file…
Mohamed Emad Hegab
  • 2,665
  • 6
  • 39
  • 64
40
votes
11 answers

Ruby unable to parse a CSV file: CSV::MalformedCSVError (Illegal quoting in line 1.)

Ubuntu 12.04 LTS Ruby ruby 1.9.3dev (2011-09-23 revision 33323) [i686-linux] Rails 3.2.9 Following is the content of my received CSV file: "date/time","settlement id","type","order…
Jignesh Gohel
  • 6,236
  • 6
  • 53
  • 89
29
votes
5 answers

CondaValueError: Malformed version string '~': invalid character(s)

I'm getting a Malformed version string error with my conda. I have no idea how to debug this or how to check it. Can anyone help? GitHub has talked about the issue but I haven't seen any fixes. -bash-4.1$ conda install -c bioconda pysam Solving…
O.rka
  • 29,847
  • 68
  • 194
  • 309
26
votes
1 answer

java.nio.charset.MalformedInputException: Input length = 1

I have this (stripped the HTML tags for the code example) function that builds a HTML table out of a CSV, but I get a runtime error everytime I try to run it and I don't know why. Google says that maybe something with the encoding is wrong but I…
Vega
  • 2,661
  • 5
  • 24
  • 49
21
votes
2 answers

ValueError: malformed string using ast.literal_eval

I'm doing a loop to get json api, here is what I have in my loop: response_item = requests.request('GET',url_item,params=None,verify=False) response_item = json.loads(response_item.text) response_item = ast.literal_eval(json.dumps(response_item,…
Aurélien
  • 409
  • 1
  • 4
  • 12
19
votes
2 answers

ValueError: malformed node or string

Why do I get this error message: ValueError: malformed node or string when I pass data in the below format into the "parse_webhook" function? Thanks! webhook_data = {"side": "BUY","key": "8234023409fa3242309sdfasdf903024917325"} def…
FM2020
  • 233
  • 1
  • 2
  • 6
13
votes
1 answer

Java // unzip error :MALFORMED

I would like to unzip recursively some archive .zip. I use java.util.zip and I can't use an other library. My code : public static void unzip(String file) { try { File fSourceZip = new File(file); String zipPath =…
user2998243
  • 181
  • 1
  • 2
  • 12
10
votes
1 answer

Xcode builds with malformed error

I am getting three weird errors that I never seen before. Can anyone help me find a solution to these errors? Definition of CGAffineTransform (aka struct CGAffineTransform) must be imported from module CoreText.CTFontDescriptor before it is…
user3511110
  • 113
  • 1
  • 8
9
votes
3 answers

using C#'s XmlReader on slightly malformed XML

I'm trying to use C#'s XmlReader on a large series of XML files, they are all properly formatted except for a few select ones (unfortunately I'm not in a position to have them changed, because it would break a lot of other code). The errors only…
Roy T.
  • 9,429
  • 2
  • 48
  • 70
9
votes
3 answers

How can multiple trailing slashes can be removed from a URL in Ruby

What I'm trying to achieve here is lets say we have two example URLs: url1 = "http://emy.dod.com/kaskaa/dkaiad/amaa//////////" url2 = "http://www.example.com/" How can I extract the striped down URLs? url1 =…
splintercell
  • 575
  • 1
  • 7
  • 22
8
votes
2 answers

Self-modifying code on Darwin 10.15 resulting in "malformed mach-o image"?

I have a program that generates self-modifying code (see https://tigress.wtf/selfModify.html in case you're interested). It runs on x86 Darwin and Linux. On Darwin, I compile with gcc -g -segprot __TEXT rwx rwx self_modifying.c -o…
8
votes
2 answers

Django admin and SQLite: database disk image is malformed

I have developed a Django powered web-pages where I am storing pretty much all content inside a database, let's say sqlite.db Django properly reads all information from the database and displays the webpage correctly. Using the admin interface…
EvilSmurf
  • 819
  • 1
  • 7
  • 21
7
votes
2 answers

Scala or Java Library for fixing malformed URIs

Does anyone know of a good Scala or Java library that can fix common problems in malformed URIs, such as containing characters that should be escaped but aren't?
Erik Engbrecht
  • 3,174
  • 17
  • 23
7
votes
1 answer

General error: 1835 Malformed communication packet

Suddenly I got this error in my Laravel web application. PDOException in MySqlConnector.php line 38: SQLSTATE[HY000]: General error: 1835 Malformed communication packet Can you help me out to solve this?
Thilak Raman
  • 79
  • 1
  • 4
1
2 3
12 13