unity – How do I fix the "invalid character" in the input string in LitJson.Lexer.NextToken () "when I try to use JSON from URL?

When I try to use a Json file served by a url I get the error

JsonException: Invalid character '' in input string

It happens when I use this method:

IEnumerator GetText()
{
   UnityWebRequest webjson = UnityWebRequest.Get("http://awebsite.com/Art_.json");

    yield return webjson.SendWebRequest();

    if (webjson.isNetworkError || webjson.isHttpError)
    {
        Debug.Log(webjson.error);
    }
    else
    {
        // The following line is giving me the error:
        // ItemDatabase_+d__3.MoveNext () (at Assets/Version2.0/Scripts/ItemDatabase_.cs:38)
        itemData = JsonMapper.ToObject(webjson.downloadHandler.text);

        Debug.Log(itemData);

        ConstructItemDatabase();

    }
}

I tried to use Trim()

itemData = JsonMapper.ToObject(webjson.downloadHandler.text.Trim());

But they still have the same result.

I have tried what is suggested in this question / answer, but it seems that it does not solve the problem I have.

flutter – I receive an "invalid constant value" when I try to add a style theme to the title in BottomNavigationBarItem

I am adding a theme to the title in BottomNavigationBarItem and I receive the error "Invalid constant value".

I know that it is not the type of theme I am using because I was able to divide my theme method and use the individual constants in the following BottomNavigationBarItem. Hmmm, I was going to post an image that shows exactly what I want to say here, but I guess I still can't.

This is the code that tells me that I have invalid constant values

BottomNavigationBarItem(
            icon: Icon(CustomIcons.wrestlingring2),
            title: Text('Event', style: Theme.of(context).textTheme.button),
          ),

This code is where I added the constant values ​​directly to the style from my buttonTheme method on my style page

BottomNavigationBarItem(
            icon: Icon(CustomIcons.wrestling),
            title: Text('Match Details', style: TextStyle(fontFamily: montserratFont, fontSize: smallTextSize, color: textColorLight)),
          ),

These are the constant values ​​and the theme of the style page button

const smallTextSize = 14.0;
const Color buttonTextColour = Color(0xffdc0000);
const String montserratFont = 'Montserrat';

const buttonTextStyle = TextStyle(
  fontFamily: montserratFont,
  fontSize: buttonTextSize,
  color: textColorLight,
);

I noticed in the flutter code that BottomNavigationBarItem is a constant and I thought this could be the problem

const BottomNavigationBarItem({
    @required this.icon,
    this.title,
    Widget activeIcon,
    this.backgroundColor,
  }) : activeIcon = activeIcon ?? icon,
       assert(icon != null);

but then I noticed that so is RaisedButton, but it doesn't affect me to add a theme.

const RaisedButton({
    Key key,
    @required VoidCallback onPressed,
    ValueChanged onHighlightChanged,
    ButtonTextTheme textTheme,

If there is another way to use the theme with the title in NavigationBarItem, I would appreciate it if someone could point it out. I'd rather not have to fear the entire Buttom navigation bar.

Why does "Invalid form key. Refresh the page" appear in the interface?

Sometimes I receive this message below during client login,

Do you know why and when this message appears?

Invalid password. Please refresh the page

Invalid password of Magento2. Please refresh the page

"Invalid entry, must be an item in the specified list" Google sheets error

I am super new in everything related to coding and google sheets. All I did was try to follow the instructions of another question I saw on this site. However, as expected, nothing works!

Here is the deal, I want to assign values ​​to certain drop-down items, then the value of the drop-down menu, along with other drop-down menus, would be added to a separate cell. However, every time I try to assign items of values ​​in a drop-down list below, I still receive errors. Below is an attachment of what happens.
example

To start, I have the list. I entered the formula as I saw it in another thread. YES (cell = "element", value, 0). Whether I list an item in the formula or all, I still receive the "Invalid, the entry must be an item in the specified list". The cell automatically becomes a 0 after entering what I think is the formula / write function for this to work.

So I come here to ask anyone, to help me discover what I am doing wrong.

bitcoin core – Why getdescriptorinfo returns an "Invalid descriptor (code -5)" error

I'm using bitcoin core bitcoin-cli with getdescriptorinfo like:

curl --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getdescriptorinfo", "params":("sh(multi(2,(3c60330a/1)03061b79f20d49790c15bdaf15ec8db6d75275f62f04a56eaac31f5c2db48736fc,(d54e4481/1)0396bd8d30f0128dcc67e143cf46efd686bf9e4dc8587facc07f81bb248d1b0209,(1e132a06/1)03c77aa842edc8af76b76f5c29a1133b45b78c8c26a170090184e500232abd15a4))#3qpdv9la") }' -H 'content-type: text/plain;' http://bitcoin:password@127.0.0.1:18332/

But come back Invalid descriptor (code -5)

What am I doing wrong?

authentication: reasonable security measures for an "invalid login"

Sorry, a long question. I hope someone smarter about InfoSec than me to read what I'm doing and give me guidance …

Background

My website allows psychiatrists to track the mental health status of their patients. It does this by sending a periodic email to a patient, with a link back to a page on the website that asks the patient to rate various aspects of their mental health (for example, the types of questions asked, Google "PHQ- 9 ").

The link in the email includes two URL arguments:

  1. The primary key of a record in the database that identifies the patient and the doctor.
  2. A random number that must match the data generated and stored in the patient's record in the database when the email was sent.

Please note that the database also contains an expiration date for the most recent email, so the "random number" is only valid for a limited period of time.

Anyone who has access to one of these emails can easily impersonate a patient on our platform by visiting the URL with valid arguments.

Now, some things are important to keep in mind:

  1. The user does NOT need to provide credentials to access the page. Anyone who navigates to the page, with valid URL arguments, receives the questionnaire. My guess is that, if someone pretends to be a user, the doctor will find out very soon when the patient visits and the answers to the questionnaire are false. Finally, the doctor-patient relationship depends on verbal and face-to-face communication. The questionnaire is just additional information that the doctor can choose to use or ignore.

  2. Accessing the page does NOT lose patient data. It is a one-way trip from the patient's (presumed) fingers to the website's database. The questionnaire does not show any personally identifiable information.

In case someone asks WHY I do not request the credentials of the patients, the answer is simple: I want the experience to be as simple as possible. I don't want patients to have to "register" on the website and remember the login credentials. The website periodically sends an email to a patient with a link to perform an evaluation. The patient clicks on the link and the evaluation appears in a browser window. Done deal. If I require a logon exercise, a significant number of patients will simply give up or forget their password, or whatever.

My question

Are there any obvious safety-related defects with this scheme (apart from the risks I have already talked about)? I guess there are several attack vectors:

  1. Someone can enter a patient's email account. In this case, that person can impersonate the patient, and I have no defense against this. But the worst thing that can happen is that the bad actor can provide false answers to mental health questionnaires.

  2. Someone could intercept my email on the way to the patient's inbox (for example, a man in the middle). In this case, the "expiration" function limits the period of time that the bad actor has to impersonate the patient. This at least prevents someone from using that data after the expiration period.

  3. Someone could attempt a brute force attack by providing a known valid primary key (discovered from an old email or simply guessed correctly; any reasonably low number is likely to be valid), plus a value for the 32-bit random number . I am not too worried about this attack.

mounting NFS v4 results in an "invalid argument"

I recently bought a Synology NAS. I can ride through SMB and APS correctly, but I can't make hard links. So I looked around and tried to use NFS. NFS ver3 works, but the Finder behaves strangely in some folders as if that folder could not be recovered or the drive had frozen, but in the terminal everything worked fine (note: use ffplay to play the file in the folder) succeeded, but it is open & # 39; says there is no such file). Then I realize that I can mount using NFS version 4.1 since the NAS supports it. But then I encounter this problem. The command I use to mount it is the following:

nfsver 3:
mkdir / Volumes / File
mount_nfs -o rwsize = 32768 -o locallocks -o namedattr -o noac -o rdirplus -o nfsv3 jin.local: volume1 / File / / Volumes / File

Output: mount_nfs: deprecated nfsv3 option, use vers = #

nfsver 4:
mkdir / Volumes / File
mount_nfs -o rwsize = 32768 -o locallocks -o namedattr -o noac -o rdirplus -o nfsv4 jin.local: volume1 / File / / Volumes / File

Output: mount_nfs: nfsv4 option deprecated, use vers = #
mount_nfs: can't mount volume1 / File / from jin.local in / Volumes / File: invalid argument


NFS version 4.1 is enabled

enter the description of the image here

sql server – "Invalid protection option"

In the following error message, the reason given is "Invalid protection option". What does that indicate?

SQL Server detected an I / O error based on logical consistency: invalid protection option

For the purposes of this question, I don't need to know anything about "how to run DBCC" or "check for damage." I have it. I'm just curious about the "root cause" piece, and what it could cause is Taste of the I / O error based on logical consistency.

validation: is it a bad practice or is it unusual to keep events of "invalid operation attempt" in an event store when events are obtained?

I have a simple toy project that deals with banking operations (cash deposit, withdrawals, bank transfers, open and closed accounts).

I wonder if there is something wrong with saving invalid operations.

Assume that the sent command (eg, Withdraw cash command) to the event source system is defective, for example, the bank account to withdraw cash does not have sufficient funds or the account identification is not valid / not exists.

Can you save the result of a validation in the event store, as well as some kind of Invalid operation attempted?

My point is that we imagine that those events can have a commercial value (you can make a projection and count how many invalid operations have occurred and other things) so that they can be saved and not just be part of the record.

validation: is it incorrect to save the events of "invalid operation attempt" in an event store when the provisioning of events is done?

I have a simple toy project that deals with banking operations (cash deposit, withdrawals, bank transfers, open and closed accounts).

I wonder if there is something wrong with saving invalid operations.

Suppose that the command sent to the Event Sourcing system is defective, for example, the bank account to withdraw cash does not have sufficient funds or the identification of the account is incorrect or does not exist.

Can you save the result of a validation in the event store, as well as some kind of Invalid operation attempted?

My point is that we imagine that those events can have a commercial value (you can make a projection and count how many invalid operations have occurred and other things) so that they can be saved and not just be part of the record.