Skip to content

[3.3] Failed to parse dotenv file due to unexpected whitespace #341

Closed

Description

@kinoute

Hi,

I understand you made some parsing changes recently. I updated to v3.3.0 and v3.3.1 and on both on them I get this error with this line:

GOOGLE_DETECTION_URL="https://vision.googleapis.com/v1/images:annotate?key="

If I remove the = at the end before the double quote, it works. But why it failed with it? I use double-quotes. Works perfectly on v3.2.0. Do I miss something here?

Thanks.

Activity

  1. GrahamCampbell commented on Jan 29, 2019

    @GrahamCampbell
    Collaborator

    Oh, interesting. Thanks for the report. This looks like a bug. I'll take a look.

  2. changed the title [-]Failed to parse dotenv file due to unexpected whitespace[/-] [+][3.1] Failed to parse dotenv file due to unexpected whitespace[/+] on Jan 29, 2019
  3. changed the title [-][3.1] Failed to parse dotenv file due to unexpected whitespace[/-] [+][3.3] Failed to parse dotenv file due to unexpected whitespace[/+] on Jan 29, 2019
  4. GrahamCampbell commented on Jan 29, 2019

    @GrahamCampbell
    Collaborator

    @kinoute Please let me know if #342 fixes your issue.

  5. kinoute commented on Jan 30, 2019

    @kinoute
    Author

    Yep, it fixes the issue. Good job!

  6. GrahamCampbell commented on Jan 30, 2019

    @GrahamCampbell
    Collaborator

    Perfect. I'll release v3.3.2 in the next few minutes.

  7. anskhilji commented on Feb 14, 2020

    @anskhilji

    @kinoute Please let me know if #342 fixes your issue.

    thank you so much

  8. Romerolweb commented on Jul 5, 2021

    @Romerolweb

    Yep, it fixes the issue. Good job!

    I have the same problem, and I have
    "vlucas/phpdotenv": "^4.0",
    in my project (I am using Laravel)

    Thanks for your help

  9. GrahamCampbell commented on Jul 5, 2021

    @GrahamCampbell
    Collaborator

    I have the same problem, and I have

    Are you sure you don't actually have invalid syntax in your file. Can you share an example file that doesn't work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions