Questions tagged [invalid-argument]
263 questions
3
votes
0 answers
invalid_argument when calling FireBase notification send API with Google Playground
When trying to use the FireBase notification API from Google Playground, "invalid_argument" is returned with a bad request (400) response.
Has anyone already faced this issue ?
POST /v1/projects/project-XXXXX/messages:send HTTP/1.1
Host:…

Christophe BRANDO
- 31
- 2
3
votes
0 answers
python 3 file.close() Errorno 22 - accessing compact flash card
I am using python to directly access the bytes written on a compact flash card. With windows (the OS I am currently using) a drive can be accessed directly by adding a '\\\\.\\' (\\.\ when printed) before the drive name. The result is a string…

Nuclear_Man_D
- 142
- 11
3
votes
0 answers
R igraph, plot(): error in invalid symbol coordinates,
What am I missing on this igraph plot() setup?
First, I read a GraphViz dot file using library(Rgraphviz):
g2 <- agread("INDDGO/sample_graphs/viz.test", layout=FALSE)
Then, I plot it using (without issues):
if (interactive())
plot(g2)
This…

sAguinaga
- 638
- 13
- 31
3
votes
5 answers
IE8 gives error "Invalid argument" when using prototype.js, how do I find where the error is?
I have a fairly complex piece of Javascript that works flawlessly with no errors in Google Chrome, Firefox, Safari, and Opera. However, as tends to always be the endlessly annoying case, it completely fails in Internet Explorer. I have tested in…

James Simpson
- 13,488
- 26
- 83
- 108
3
votes
1 answer
Is it possible that CUDA's memcpy(dst, src, 0) writes to *dst?
I have some kernel code which calls memcpy(my_dst, my_src, my_num_bytes) - and sometimes I have my_num_bytes equal to 0. Strangely enough, some sporadic experimentation (with Titan X, CUDA 7.5, driver 358.16) suggests data does get written into the…

einpoklum
- 118,144
- 57
- 340
- 684
3
votes
2 answers
Powershell not recognizing boolean argument
I have the following PS script
param (
# FQDN or IP address of the Domain Controller
[Parameter(Mandatory=$True)]
[string]$ADaddress,
# Active directory domain name
# example: directory.local
[Parameter(Mandatory=$True)]
…

Mario Stoilov
- 3,411
- 5
- 31
- 51
3
votes
1 answer
NSExpression catch invalid arguments
I am using NSExpression to evaluate a mathematical string and it works great. However I want to have a way of catching an error when the input string is invalid, such as "3++2". Is there a way to go about doing this instead of the application…

Amendale
- 317
- 3
- 19
3
votes
3 answers
Make extern C++ function return a message if an exception is thrown
I would like to make my extern C++ function return a message when an exception occurs. Something like this:
extern "C" __declspec(dllexport) const char* __stdcall Calculate(double &result, double a, double b)
{
try
{
result =…

user2508767
- 33
- 4
3
votes
1 answer
CUDA cudaMemcpy: invalid argument
Here is my code:
struct S {
int a, b;
float c, d;
};
class A {
private:
S* d;
S h[3];
public:
A() {
cutilSafeCall(cudaMalloc((void**)&d, sizeof(S)*3));
}
void Init();
};
void A::Init() {
for (int i=0;i<3;i++) {
…

TonyLic
- 647
- 1
- 13
- 26
2
votes
1 answer
'-[__NSDate managedObjectContext]: unrecognized selector sent to instance
I have some entities in core data, and they are all sub classes of a super class which has a NSDate attribute,
and all others works well when I save them,
but one of them would seemingly probabilisticly crash when I save it,
and I found the reason…

Wang Liang
- 941
- 2
- 15
- 34
2
votes
0 answers
Shouldn't fgets(s, n, stream) return an empty string instead of NULL for all n<=1?
According to the standard (C17 draft, 7.21.7.2), fgets (¶1)
char *fgets(char * restrict s, int n, FILE * restrict stream);
reads from stream at most n-1 characters (until the first '\n' (which is in this case also written to the target) or EOF)…

Lover of Structure
- 1,561
- 3
- 11
- 27
2
votes
1 answer
Cufon IE Invalid Argument
Okay, I'm a little stumped with this one. I am usng Cufon to replace my text with a non-web standard font. This is a script I've used an aweful lot & never had a problem with it in the past. Along comes IE and it decides to ruin my day.
I am using…

Sheixt
- 2,546
- 12
- 36
- 65
2
votes
2 answers
passing literal string as const char * parameter causes code analyzer error
I have overloaded function
int put_message(int level, int sys_log_level, const char * inp_message);
int put_message(int level, int sys_log_level, const std::string &inp_message);
and call this function
put_message(0, LOG_ERR, "clock_gettime…

Egor
- 31
- 5
2
votes
0 answers
Pyserial: termios.error: (22, 'Invalid argument') while reading from virtual serial port
Is there any posibility to read from virtual serial ports without mentioned error?
I'm trying to reach data sent from symbol/zebra barcode scanner li4278. Device is working in simple com port emulation mode and it's under /dev/usb/hiddev0 as serial…

Chaallimack
- 21
- 3
2
votes
0 answers
InvalidArgumentError: Incompatible shapes: [1920] vs. [32,60] [[{{node metrics_3/acc/Equal}}]]
I am into training a Bi-lstm sequence tagger model and getting the following error with this model parameters:
model = Sequential()
model.add(Bidirectional(LSTM(units=512, return_sequences=True,
recurrent_dropout=0.2,…

ptamas90
- 147
- 3
- 9