Hello everyone! Im trying to publish results in p...
# pact-net
a
Hello everyone! Im trying to publish results in pactbroker after provider verification. Locally it was really possible and its everything ok. However, in my company, we have our broker using https and I'm cant to publish results (tests fails in C#.Net and results arent being published to broker) Anyone can help me to solve it?
m
What's different about the setup? Are there failures or is it just disabled?
Debug level logs might help too
a
@Matt (pactflow.io / pact-js / pact-go)
y
the broker url looks odd https://test/pactbroker
a
yes, rs... is just one example. our real url is available in our internal network.
m
Could you please add
trace
level logs and share with us? I’d like to know why no pacts were found
a
when I make this request to localhost, I dont have any problem and can to load pacts.
m
Can you please set the log level to
trace
and share?
a
Hi @Matt (pactflow.io / pact-js / pact-go) sorry for my delay. Sure, follow the log containing the trace log level.
@Matt (pactflow.io / pact-js / pact-go) we are almost finishing our internal pilot... This point will be crucial. Is there anything that I need to do in my side to solve it or it will necessary some issue to be opened? πŸ™
m
Hi andre, sorry I'm just on my phone at the moment so can't read the logs. I reckon there are two possibilities: 1. The core has a big and is appending the base URL with the additional path to subsequent requests to the broker 2. Your broker is behind a reverse proxy and is incorrectly setting the reverse proxy x-forwarded-for and related headerw
Could you please share the result of an authenticated curl to the pact broker? That should help me
a
The results were:
Is it enough?
m
Thanks that helps. I'm guessing a bug somewhere, I'll have to take a look Monday though
a
Ok @Matt (pactflow.io / pact-js / pact-go) thanks a lot again πŸ™‚
πŸ‘ 1
Please, change by this log... I already changed all our urls and ip's.
log-masked-pact.txt
m
ok can do. Note that this forum is also public, so next time probably best to redact before posting here πŸ˜‰ Will update next time i’m at the desk!
a
OK @Matt (pactflow.io / pact-js / pact-go) many thanks. I also changed here in our thread πŸ˜‰ Thanks a lot!!!
@Matt (pactflow.io / pact-js / pact-go) I had sent it wrong here in our thread... the idea was really to have already sent it with masked data. But thanks a lot again for this fix πŸ™‚
@Matt (pactflow.io / pact-js / pact-go) if you prefer, delete totally this github issue and I create the issue with the correct masked log. I apologize again for that, I didn't realize I sent the log without mask.
m
np
I’ll redact it now
done βœ…
(I also deleted the revision from history so it’s not there too)
a
Hello @Matt (pactflow.io / pact-js / pact-go) thanks a lot again! We are with our poc in progress with some teams in our company. I will share with you our results and feedbacks πŸ‘Š
πŸ™Œ 1
πŸ™ 1
βœ… 1