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

[BUG]cannot parse url #53

Open
vansh1 opened this issue Jan 11, 2022 · 4 comments
Open

[BUG]cannot parse url #53

vansh1 opened this issue Jan 11, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@vansh1
Copy link

vansh1 commented Jan 11, 2022

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

cat httpx.txt | galer -o galer.txt --verbose
Expected behavior

it should run brings some js files .

Screenshots

If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • OS: ubuntu
  • Linux kalibox 5.11.0-1025-azure
  • galer version: latest(just installed galer)

Additional context
Add any other context about the problem here. Full output log is probably a helpful thing to add here.

@vansh1 vansh1 added the bug Something isn't working label Jan 11, 2022
@ruzfi
Copy link

ruzfi commented Feb 12, 2022

Hi @vansh1,

Can you provide example httpx.txt file that causing cannot parse url message?

After reviewing the error messages coming from the lines

galer/pkg/galer/galer.go

Lines 32 to 34 in 7e0f77b

if !IsURI(URL) {
return nil, errors.New("cannot parse URL")
}
and

galer/pkg/galer/util.go

Lines 8 to 20 in 7e0f77b

func IsURI(s string) bool {
_, e := url.ParseRequestURI(s)
if e != nil {
return false
}
u, e := url.Parse(s)
if e != nil || u.Scheme == "" || u.Host == "" {
return false
}
return true
}
there seems to be a url typing error, try to make sure it fits the URL structure as this tool requires URL scheme and URL host to run

The URL structure i mention is
[scheme:][//[userinfo@]host][/]path[?query][#fragment]
e.g.
https://twitter.com

@vansh1
Copy link
Author

vansh1 commented Oct 17, 2022

i am still getting error
[ERR] Error 'https://subdomain.target.com': cannot fetch URL.

@nAgga3
Copy link

nAgga3 commented Mar 23, 2023

I have the same errror

@hxlxmjxbbxs
Copy link

Same error

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
None yet
Development

No branches or pull requests

5 participants