[GH-ISSUE #65] Unexpected token QuotedString #32

Closed
opened 2026-02-28 01:20:36 +03:00 by kerem · 0 comments
Owner

Originally created by @ImOlli on GitHub (Feb 12, 2025).
Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/65

If i try to parse a nginx.conf file with the following content:

log_format json_analytics escape=json '{'
	'"msec": "$msec", ' # request unixtime in seconds with a milliseconds resolution
        '"connection": "$connection", ' # connection serial number
        '"connection_requests": "$connection_requests", ' # number of requests made in connection
        '}';

I get the following error:

failed to parse config: unexpected token QuotedString ('"connection": "$connection", ') on line 27, column 9

Originally created by @ImOlli on GitHub (Feb 12, 2025). Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/65 If i try to parse a nginx.conf file with the following content: ``` log_format json_analytics escape=json '{' '"msec": "$msec", ' # request unixtime in seconds with a milliseconds resolution '"connection": "$connection", ' # connection serial number '"connection_requests": "$connection_requests", ' # number of requests made in connection '}'; ``` I get the following error: > failed to parse config: unexpected token QuotedString ('"connection": "$connection", ') on line 27, column 9
kerem 2026-02-28 01:20:36 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/gonginx#32
No description provided.