question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to create a project in presidio?

See original GitHub issue

Describe the bug How to create a project in presidio? Trying hard to follow the tutorial https://github.com/Microsoft/presidio/blob/master/docs/tutorial_service.md

To Reproduce Steps to reproduce the behavior:

$ curl -X POST localhost:3000/api/v1/projects/1
Warning: Binary output can mess up your terminal. Use "--output -" to tell 
Warning: curl to output it to your terminal anyway, or consider "--output 
Warning: <FILE>" to save to a file.

$ curl -X POST localhost:3000/api/v1/projects/my-projects
Warning: Binary output can mess up your terminal. Use "--output -" to tell 
Warning: curl to output it to your terminal anyway, or consider "--output 
Warning: <FILE>" to save to a file.

Expected behavior Before I can analyze a template… I need to create a default project? $ echo -n ‘{“text”:“John Smith lives in New York. We met yesterday morning in Seattle. I called him before on (212) 555-1234 to verify the appointment. He also told me that his drivers license is AC333991”, “analyzeTemplate”:{“fields”:[]} }’ | http <api-service-address>/api/v1/projects/<my-project>/analyze

Screenshots N/A

Additional context Just try to run the example from https://github.com/Microsoft/presidio/blob/master/docs/tutorial_service.md

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
teo-chenglimcommented, Apr 29, 2019

I have figure it out. Thank you for the tips tough.

$ echo -n '{"text":"John Smith lives in New York. We met yesterday morning in Seattle. I called him before on (212) 555-1234 to verify the appointment. He also told me that his drivers license is AC111921", "analyzeTemplate":{"fields":[]}  }' | http -F --verify=no  https://192.168.1.44/api/v1/projects/1/analyze
HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Type: application/json; charset=utf-8
Date: Mon, 29 Apr 2019 08:14:42 GMT
Server: nginx/1.15.6
Transfer-Encoding: chunked
Vary: Accept-Encoding

[
    {
        "field": {
            "name": "PERSON"
        },
        "location": {
            "end": 10,
            "length": 10
        },
        "score": 0.85,
        "text": "John Smith"
    },
    {
        "field": {
            "name": "LOCATION"
        },
        "location": {
            "end": 28,
            "length": 8,
            "start": 20
        },
        "score": 0.85,
        "text": "New York"
    },
    {
        "field": {
            "name": "DATE_TIME"
        },
        "location": {
            "end": 46,
            "length": 9,
            "start": 37
        },
        "score": 0.85,
        "text": "yesterday"
    },
    {
        "field": {
            "name": "DATE_TIME"
        },
        "location": {
            "end": 54,
            "length": 7,
            "start": 47
        },
        "score": 0.85,
        "text": "morning"
    },
    {
        "field": {
            "name": "LOCATION"
        },
        "location": {
            "end": 65,
            "length": 7,
            "start": 58
        },
        "score": 0.85,
        "text": "Seattle"
    },
    {
        "field": {
            "name": "PHONE_NUMBER"
        },
        "location": {
            "end": 104,
            "length": 14,
            "start": 90
        },
        "score": 1,
        "text": "(212) 555-1234"
    },
    {
        "field": {
            "name": "US_DRIVER_LICENSE"
        },
        "location": {
            "end": 184,
            "length": 8,
            "start": 176
        },
        "score": 0.65,
        "text": "AC111921"
    }
]
0reactions
nikhil-neucommented, Nov 27, 2020

I have deployed Presidio using the docker deployment I see the 4 presidio docker containers running

i try to run this $ echo -n ‘{“text”:“John Smith lives in New York. We met yesterday morning in Seattle. I called him before on (212) 555-1234 to verify the appointment. He also told me that his drivers license is AC111921”, “analyzeTemplate”:{“fields”:[]} }’ | http -F --verify= no http://172.105.253.118/api/v1/projects/1/analyze

and i get this command not found

http: error: ConnectionError: HTTPConnectionPool(host=‘172.105.253.118’, port=80): Max retries exceeded with url: /api/v1/projects/1/analyze (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7fefb6735128>: Failed to establish a new connection: [Errno 111] Connection refused’,)) while doing POST request to URL: http://172.105.253.118/api/v1/projects/1/analyze

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project Documents - San Francisco - Presidio Trust
Project Documents · Art Review Process. Art Collections Manual · Commercial Dog Walking. Commercial Dog Walking Policy Meeting Transcript with Public Comments.
Read more >
Implementation Services - Presidio
As we deliver an implementation project, we establish best practices to empower your team to be self-sufficient in sustaining and continuously innovating upon ......
Read more >
Experiential Learning Client Projects - Presidio Graduate School
See how you can request a talented team of Presidio Graduate School students to lead important sustainability projects at your organization.
Read more >
Presidio Gateway - Exploratorium
Part of the Doyle Drive project, the Gateway project creates ten new acres of land with spectacular views adjacent to the new park...
Read more >
San Francisco's Presidio park project designed 'by the ...
San Francisco's Presidio Tunnel Tops project—a 14-acre (5.67 ha) park ... used the response from the public to create an area prioritizing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found