$$\int \frac{1}{(1+x)\sqrt{x^{2}+x+1}}dx$$
I tried with the Euler substitution.I wrote that $\sqrt{x^{2}+x+1}=x+t$ and I got $x=\frac{t^{2}-1}{1-2t}$.I replaced this x in the initial integral and also I replaced dx with x' but I get an ugly result.
The same I get for $$\int \frac{1}{1+\sqrt{x^{2}+2x+2}}dx$$
For the second integral I get $x=\frac{t^{2}-2}{2-2t}$ but when I replace x in the integral I get some ugly result.
How to approach these integrals?
Using Euler substitution as you did, I suppose that you did not simplify enougth since $$ \frac{dx}{(1+x)\sqrt{x^{2}+x+1}}=-2\frac{ \text{sgn}(1-2 t)}{(t-2) t}\,dt$$