Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow step fails if workflow is triggered with a specific user agent string #88

Open
priyaaank opened this issue Jan 29, 2021 · 0 comments
Assignees
Labels
bug Something isn't working
Projects
Milestone

Comments

@priyaaank
Copy link
Member

priyaaank commented Jan 29, 2021

Describe the bug
When the initial workflow is called with following header and value, then the parsing before the first step fails.
Header name: User-Agent
Header value: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20100101 Firefox/16.0

To Reproduce
Steps to reproduce the behavior:

  1. Create any workflow
  2. Trigger workflow and ensure that above specified header is part of the trigger request
  3. Check the service request status

Expected behavior
Expected to see a successful execution of the step

Screenshots/Logs
However, this is the error I see

{
    "service_request_id": "a28ad6ed-1101-4909-9132-54ecf08622ba",
    "workflow_name": "benchmarking_http_services_flow",
    "status": "FAILED",
    "total_time_in_ms": 3,
    "steps": [
        {
            "id": 1,
            "name": "benchmarking step one",
            "status": "STARTED",
            "time_taken": 0,
            "payload": {
                "request": null,
                "response": null
            }
        },
        {
            "id": 1,
            "name": "benchmarking step one",
            "status": "FAILED",
            "time_taken": 4,
            "payload": {
                "request": null,
                "response": {
                    "errors": {
                        "code": 400,
                        "message": "Get \"http://api-server:8083/api/step1\": net/http: invalid header field name \" rv\""
                    }
                }
            }
        }
    ],
    "reason": ""
}

Desktop (please complete the following information):

  • OS: OSX
  • Versions of integrations and other tools used - HTTP API
  • Version of Clamp-Core 98a705150969879fa9d22c7f404cb195be59d02a

Additional context
None

@priyaaank priyaaank added the bug Something isn't working label Jan 29, 2021
@priyaaank priyaaank added this to the Release Thor milestone Jan 29, 2021
@priyaaank priyaaank added this to To do in clamp via automation Jan 29, 2021
@priyaaank priyaaank changed the title Step without a Payload errors out in a workflow. Including GET requests Workflow step fails if workflow is triggered with a specific user agent string Jan 29, 2021
@lohith46 lohith46 self-assigned this Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
clamp
  
To do
Development

No branches or pull requests

2 participants