An example such as the following will produce the error that you state.
The first run through latex will give no error, bibtex will give no error but the generated .bbl file will have code that generates a mis-matched {
that in itself causes no error at that point but when \end{thebibliography}
is reached LaTeX complains that it is trying to close the wrong kind of group as it is expecting a }
so you get
! Missing } inserted.
<inserted text>
}
l.11 \end{thebibliography}
?
Note that a simple mis-matched {
in a bib entry would already be detected by bibtex which would give an error and detect the entry but as shown here it is possible to have constructs that allow a mis-matched brace to slip past bibtex's checks.
So in your real document look for mis-matched braces in the generated bbl file and once found correct the bib entry that produced them.
\begin{filecontents}{\jobname.bib}
@misc{abc,
title="title one",
author="yo{\iffalse}\fi u",
publisher="someone"}
@misc{xyz,
title="title two",
author="me",
publisher="zzz"}
\end{filecontents}
\documentclass{article}
\begin{document}
something about \cite{abc} and also \cite{xyz}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
{
as a group will be opened that will not be detected until the\end{thebibliography}
trires to close a different group.