Skip to content

Generate Code Snippet gives junk values in clipboard if l2.env file is not found in the present/parent directories. #21

@lovestaco

Description

@lovestaco
�[90m9:19PM�[0m �[32mINF�[0m Didn't find l2.env in the API directory �[36mType=�[0mPreprocess
const url = 'http://localhost:8000/polls/alldata';
const options = {method: 'get'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}

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